A change, end to end
docs/guides/change-lifecycle.md🔄 A change, end to end
From picking an issue to a released version. Each step links to the hook, script or workflow that does it.
1. Pick the issue
pnpm issue:pick
Creates and checks out <type>/<area>/<issue number>-<slug> and assigns you. Later steps read the
issue number from that name; a hand-made branch without it silently skips steps 2 and 5.
2. Commit
| Hook | Does |
|---|---|
pre-commit | Blocks on a stale docs/FEATURES.md or a failing invariants:check. Runs env:sync if a .env.example is staged. Stages usage:flush's telemetry |
commit-msg | Adds the issue number (feat: add thing → feat: [#50] add thing), then runs commitlint |
Commitlint is @commitlint/config-conventional: lower-case type, and a subject that isn't
capitalised. feat: add thing passes; feat: Add thing doesn't.
3. Push
pre-push, in order:
- Branch name must match
^(hotfix|fix|feature|release)/[^/]+/[0-9]+-.+. - No new
TODO/FIXMEin the pushed commits — file it withpnpm issue:addinstead. pnpm audit, warning only.- Lint, test and typecheck on affected projects — in the working tree, so uncommitted changes count.
pnpm unused:checkon the whole workspace, since an export goes unused when its last importer changes, not itself.
4. Ship
pnpm issue:ship (README) pushes, opens or reuses
the PR, arms auto-merge and waits for checks.
5. The PR fills itself in
pr-metadata.ymlcopies the issue's title, assignees and project onto the PR. NeedsPROJECTS_TOKEN; no-ops on forks.pr-labeler.ymladds path labels, andpr-docs-review.ymlposts an advisory docs review.
6. CI
ci.yml on every PR and push to master:
| Step | Scope | Already run locally? |
|---|---|---|
docs:map --check, invariants:check | Whole workspace | Yes, pre-commit |
unused:check | Whole workspace | Yes, pre-push |
lint, typecheck, test:coverage, build | Affected | Lint, typecheck and test (without coverage) at pre-push |
test:e2e | Affected, in parallel with checks and not required | No |
| Dependency review | The PR's diff | pnpm audit, roughly |
So coverage thresholds and builds fail only in CI — and huella-legal typechecks during its build.
The master ruleset requires a PR with no review. Required checks: checks and
dependency-review from CI, huella-legal from the Netlify workflow, plus SonarCloud.
7. Release
Merging isn't releasing. Run the Release workflow by hand; see versioning.