Skip to content

chore: add commit message normalizer#143

Open
marcus wants to merge 1 commit intocodex/release-notes-drafterfrom
feat/commit-message-normalizer-v25
Open

chore: add commit message normalizer#143
marcus wants to merge 1 commit intocodex/release-notes-drafterfrom
feat/commit-message-normalizer-v25

Conversation

@marcus
Copy link
Copy Markdown
Owner

@marcus marcus commented Apr 17, 2026

Summary

  • add the td commit-message / td commit-msg command, commit-msg hook, hook installation wiring, and docs updates from the prior normalizer branch
  • normalize only the commit subject while preserving bodies and trailers, and keep merge/revert/autosquash subjects untouched
  • relax subject parsing when td already knows the intended commit type so summaries like HTTP: retry on EOF and CLI: tighten help text normalize instead of failing as unsupported commit types

Verification

  • go build ./...
  • go vet ./...
  • go test ./internal/git ./cmd
  • go test ./...
  • manual linked-worktree smoke test: verified hooks install against the active worktree path, HTTP: retry on EOF rewrites to the canonical subject while preserving Nightshift-* trailers, and merge/revert/autosquash messages are left unchanged

Automated by nightshift

Add the td commit-message/commit-msg command, the commit-msg hook wiring,
and the supporting docs/tests. Also relax prefix parsing when td already has
commit type context so summaries like HTTP: retry on EOF or CLI: tighten help
text normalize cleanly instead of being rejected as unsupported types.

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