You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/pull_request_template.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,29 +11,30 @@
11
11
-[ ] No baseline exception requested.
12
12
-[ ] Baseline exception requested and linked below.
13
13
14
-
Tracking issue:
15
-
Scoped checks run:
16
-
Why full baseline is not required:
14
+
<!-- Write values on the same line as each label, or generate this section via `pnpm pr:readiness:prepare ...`. -->
15
+
Tracking issue:
16
+
Scoped checks run:
17
+
Why full baseline is not required:
17
18
18
19
## CLI Surface Migration
19
20
20
21
-[ ] No migration packet required for this CLI change.
21
22
-[ ] CLI/user-facing surface change and migration packet completed.
22
23
23
-
<!-- Fill the fields below as plain label lines. Do not add list markers like "-" before labels. -->
24
-
No-migration rationale:
25
-
Upgrade note:
26
-
Deprecation/removal plan or issue:
27
-
Docs/help/examples updated:
28
-
Release/changeset wording:
24
+
<!-- Fill the fields below on the same line as each label, or generate this section via `pnpm pr:readiness:prepare ...`. Do not add list markers like "-" before labels. -->
25
+
No-migration rationale:
26
+
Upgrade note:
27
+
Deprecation/removal plan or issue:
28
+
Docs/help/examples updated:
29
+
Release/changeset wording:
29
30
30
31
## Scaffold Contract Proof
31
32
32
33
-[ ] No scaffold contract proof required for this PR.
33
34
-[ ] Scaffold contract proof completed.
34
35
35
-
<!-- Fill the fields below as plain label lines. Do not add list markers like "-" before labels. -->
36
-
No-proof rationale:
37
-
Non-edit assertion:
38
-
Fail-fast input-contract proof:
39
-
Generated-output viability proof:
36
+
<!-- Fill the fields below on the same line as each label, or generate this section via `pnpm pr:readiness:prepare ...`. Do not add list markers like "-" before labels. -->
Copy file name to clipboardExpand all lines: docs/guide/ztd-cli-quality-gates.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ The contract has three goals:
70
70
71
71
The author-facing entry point is `.github/pull_request_template.md`.
72
72
The enforcement point is `scripts/check-pr-readiness.js`, which reads the PR body from `GITHUB_EVENT_PATH`.
73
+
For mechanical authoring, use `pnpm pr:readiness:prepare ...` to generate a validator-compatible body from the changed-file classification and structured field inputs before opening the PR.
73
74
74
75
When scaffold-related files change, the PR body must cover:
verificationLines: ['pnpm --filter @rawsql-ts/ztd-cli test -- prReadiness.unit.test.ts'],
318
+
baselineMode: 'no-exception',
319
+
scaffoldMode: 'proof',
320
+
nonEditAssertion: 'The parent feature boundary remains untouched while the generated child import shape is asserted separately.',
321
+
failFastProof: 'The prepared body requires the explicit proof field before validation succeeds.',
322
+
generatedOutputProof: 'Generated project verification confirms the scaffolded output stays viable.',
323
+
});
324
+
325
+
expect(prepared.body).toContain('Non-edit assertion: The parent feature boundary remains untouched while the generated child import shape is asserted separately.');
326
+
expect(prepared.body).toContain('Fail-fast input-contract proof: The prepared body requires the explicit proof field before validation succeeds.');
0 commit comments