chore(udg): add local check-only dist drift pre-commit hook #2
No reviewers
Labels
No labels
priority
P1
priority
P2
priority
P3
priority
P4
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/toilville-design!2
Loading…
Reference in a new issue
No description provided.
Delete branch "spelwork/charming-elion-b0d2f1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A token change requires
just build+ committing the regenerated dist/, butthat 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 --alland 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 buildand note the hook in CLAUDE.md dev-setup.