chore(udg): add local check-only dist drift pre-commit hook #2

Merged
peterswimm merged 1 commit from spelwork/charming-elion-b0d2f1 into main 2026-06-28 21:33:00 +00:00
Owner

A token change requires just build + committing the regenerated dist/, but
that was enforced only in CI (udg-dist-check.yml) — easy to forget locally and
hit a red PR. Add a local pre-commit hook (repo: local) that runs
extract.py check --all and blocks the commit if dist/ is stale vs the dtcg +
udg sources. Scoped to token-source/dist paths, so template + wp-themes commits
are unaffected. Also sharpen the generator drift message to say just build
and note the hook in CLAUDE.md dev-setup.

A token change requires `just build` + committing the regenerated dist/, but that was enforced only in CI (udg-dist-check.yml) — easy to forget locally and hit a red PR. Add a local pre-commit hook (repo: local) that runs `extract.py check --all` and blocks the commit if dist/ is stale vs the dtcg + udg sources. Scoped to token-source/dist paths, so template + wp-themes commits are unaffected. Also sharpen the generator drift message to say `just build` and note the hook in CLAUDE.md dev-setup.
chore(udg): add local check-only dist drift pre-commit hook
All checks were successful
UDG dist drift gate / dist/ matches dtcg + udg sources (pull_request) Successful in 10s
Test Generator / lint-workflows (pull_request) Successful in 13s
Test Generator / test (pull_request) Successful in 3m3s
e9cb620b28
A token change requires `just build` + committing the regenerated dist/, but
that was enforced only in CI (udg-dist-check.yml) — easy to forget locally and
hit a red PR. Add a local pre-commit hook (repo: local) that runs
`extract.py check --all` and blocks the commit if dist/ is stale vs the dtcg +
udg sources. Scoped to token-source/dist paths, so template + wp-themes commits
are unaffected. Also sharpen the generator drift message to say `just build`
and note the hook in CLAUDE.md dev-setup.
peterswimm deleted branch spelwork/charming-elion-b0d2f1 2026-06-28 21:33:00 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Toilville/toilville-design!2
No description provided.