Skip to content

ZIR-000: Track commit message hooks and document commit format - #354

Closed
zeroecco wants to merge 3 commits into
mainfrom
feature/commit-normalize
Closed

zeroecco wants to merge 3 commits into
mainfrom
feature/commit-normalize

Conversation

@zeroecco

Copy link
Copy Markdown

Summary

  • Add .githooks/ directory with tracked commit-msg (validator) and prepare-commit-msg (auto-normalizer) hooks
  • Add scripts/setup-hooks.sh — one-command setup via git config core.hooksPath .githooks
  • Add CONTRIBUTING.md documenting the ZIR-XXX: commit format, exceptions, and setup instructions

Test plan

  • Clone repo fresh, run bash scripts/setup-hooks.sh, verify git config core.hooksPath is set to .githooks
  • Attempt a commit without ZIR- prefix — confirm commit-msg hook rejects it
  • Attempt same commit — confirm prepare-commit-msg auto-prepends ZIR-000:
  • Attempt a Merge/Revert commit — confirm it passes validation without modification
  • Review CONTRIBUTING.md renders correctly on GitHub

🤖 Generated with Claude Code

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift

Richard Howard added 3 commits May 6, 2026 02:02
…tup script

The prepare-commit-msg hook was already installed in .git/hooks but was
not tracked in hooks/ and not installed by scripts/setup-git-hooks.sh.
New contributors running setup-git-hooks.sh got the validator (commit-msg)
but not the auto-normalizer, causing commit failures on bare messages
instead of silent ZIR-000: prefixing.

This commit also tracks hooks/commit-msg, hooks/commit-msg-template, and
scripts/setup-git-hooks.sh which were living only on feature branches and
not on main, closing the full normalize-then-validate pipeline for all
contributors.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
Move hooks to tracked .githooks/ directory for use with core.hooksPath,
add scripts/setup-hooks.sh for one-command activation, and document the
ZIR-XXX: commit convention in CONTRIBUTING.md.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
@flaub flaub closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants