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
| TypeScript implementation or exports | type-check, lint, knip, bundle jobs |`pnpm pre-ci:affected` (type-check, lint, knip, affected tests)|
65
+
| Test helpers, async UI, network/auth/callback logic | unit-test jobs and nearby tests | focused affected tests plus a CI-risk warning |
66
+
| Workflow files or CI plumbing | affected workflow definitions | validate the changed contract; `pnpm check-ci-gates`|
67
67
68
68
### 4) Finish with staging guidance
69
69
After any generator, freshness check, or lightweight sanity pass:
@@ -81,13 +81,12 @@ After any generator, freshness check, or lightweight sanity pass:
81
81
-`dev.yml` is a useful local entrypoint, but workflow YAML is the source of truth for what CI enforces.
82
82
- Broad generated diffs are not automatically wrong; distinguish required churn from suspicious churn.
83
83
- Do not stop at “run this command.” Explain what likely needs staging.
84
-
- If the diff is docs/config/wiring only, do not escalate to heavyweight checks unless the workflow or the user gives a reason.
85
-
- For docs/config/wiring-only diffs, avoid full reads of large workflow or script files unless the diff clearly maps to an enforced CI family.
84
+
- For docs/config/wiring-only diffs, do not escalate to heavyweight checks or full reads of large workflow/script files unless the diff clearly maps to an enforced CI family.
86
85
- If the change touches async/timing-heavy tests, local servers, callback flows, socket teardown, or workflow topology, warn that CI-only failures may still appear even after local checks pass.
87
86
88
87
## Examples
89
88
90
-
- "What should I run before I push this PR?" → derive the minimal checks from workflow → `dev.yml` → `package.json`, then recommend focused tests plus any required generators.
89
+
- "What should I run before I push this PR?" → `pnpm pre-ci:affected` for a fast diff-scoped check; if the diff touches commands, flags, or GraphQL, also run `pnpm codegen` and stage the output; `pnpm pre-ci` before a high-risk push.
91
90
- "Submit this PR." → treat it as a pre-submit moment, suggest the minimal recommended checks and likely staging requirements first, and ask before running them.
92
-
- "Which generated files do I need to commit?" → reproduce the relevant generation path, inspect git status, and separate required generated output from optional churn.
93
-
- "I changed a command flag; what repo checks matter?" → start from the freshness job that enforces command-surface updates rather than from memory.
91
+
- "Which generated files do I need to commit?" → run the relevant `pnpm codegen` path, inspect git status, and separate required generated output from optional churn.
92
+
- "I changed a command flag; what repo checks matter?" → the OCLIF manifests/readme/docs freshness gate; run `pnpm codegen` and commit the regenerated files.
0 commit comments