Skip to content
joinery / docs

A change, end to end

404 words · updated 6 hours agodocs/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

HookDoes
pre-commitBlocks 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-msgAdds 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:

  1. Branch name must match ^(hotfix|fix|feature|release)/[^/]+/[0-9]+-.+.
  2. No new TODO/FIXME in the pushed commits — file it with pnpm issue:add instead.
  3. pnpm audit, warning only.
  4. Lint, test and typecheck on affected projects — in the working tree, so uncommitted changes count.
  5. pnpm unused:check on 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

6. CI

ci.yml on every PR and push to master:

StepScopeAlready run locally?
docs:map --check, invariants:checkWhole workspaceYes, pre-commit
unused:checkWhole workspaceYes, pre-push
lint, typecheck, test:coverage, buildAffectedLint, typecheck and test (without coverage) at pre-push
test:e2eAffected, in parallel with checks and not requiredNo
Dependency reviewThe PR's diffpnpm 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.