Skip to content

Add commit message normalizer hook#151

Open
marcus wants to merge 1 commit intomainfrom
feat/commit-message-normalizer-20260420-fix2
Open

Add commit message normalizer hook#151
marcus wants to merge 1 commit intomainfrom
feat/commit-message-normalizer-20260420-fix2

Conversation

@marcus
Copy link
Copy Markdown
Owner

@marcus marcus commented Apr 20, 2026

Summary

  • add a commit-msg hook that normalizes human-authored subjects to type: summary (td-<id>)
  • install and test the hook via make install-hooks, make test, and a dedicated shell suite
  • document the canonical format and the release automation exception td: bump to vX.Y.Z

Verification

  • bash ./scripts/test_commit-msg.sh
  • make install-hooks
  • ls -l .git/hooks/pre-commit .git/hooks/commit-msg
  • make test (currently fails in pre-existing internal/features tests on this branch from main)

Notes

  • fixes the multi-token regression by preferring the trailing task reference instead of the first td-... mentioned in the summary
  • preserves commit bodies and trailers unchanged

Add a commit-msg hook, test coverage, and docs/install updates for the canonical commit subject format.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
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.

1 participant