Skip to content

chore: add commit message normalizer#178

Open
marcus wants to merge 1 commit intocodex/lint-fix-linter-fixesfrom
codex/commit-normalize-20260504
Open

chore: add commit message normalizer#178
marcus wants to merge 1 commit intocodex/lint-fix-linter-fixesfrom
codex/commit-normalize-20260504

Conversation

@marcus
Copy link
Copy Markdown
Owner

@marcus marcus commented May 4, 2026

Summary

  • Add a commit-msg hook that normalizes regular Conventional Commit subjects while preserving bodies and trailers.
  • Add focused shell tests for normalization, passthrough subjects, trailer preservation, and invalid-subject rejection.
  • Install both pre-commit and commit-msg hooks via git common-dir absolute symlinks, and align release docs/automation examples with the accepted format.

Validation

  • bash scripts/test-commit-msg-hook.sh
  • make install-hooks, then inspected /Users/marcus/code/td/.git/hooks/pre-commit and /Users/marcus/code/td/.git/hooks/commit-msg
  • go test ./...
  • git diff --check
  • git diff --cached --check

Assumption

This standardizes future developer-local and automation commit subjects with a commit-msg hook rather than rewriting existing history.


Automated by nightshift

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