Skip to content

chore: normalize commit messages#155

Open
marcus wants to merge 1 commit intomainfrom
feature/commit-message-normalizer-v3
Open

chore: normalize commit messages#155
marcus wants to merge 1 commit intomainfrom
feature/commit-message-normalizer-v3

Conversation

@marcus
Copy link
Copy Markdown
Owner

@marcus marcus commented Apr 21, 2026

Summary

  • add a strict repo-level commit-msg hook that only normalizes safe type: prefix casing/spacing and rejects non-(td-<id>) trailing suffixes
  • update make install-hooks to install both hooks through git rev-parse --git-path hooks, which works in normal repos and Git worktrees
  • align contributor docs and release automation on the canonical type: summary / type: summary (td-<id>) format

Verification

  • go build ./...
  • go test ./... -run TestCommitMsgHook
  • isolated clone + detached worktree dry run: make install-hooks succeeded, Feat : ... (td-2b41b2) normalized to feat: ... (td-2b41b2), and feat: ... (jira-123) was rejected
  • go test ./... still fails in pre-existing internal/features tests (TestKnownFeatureDefaults, TestIsEnabledForProcess_EnableDisableLists, TestIsEnabled_ProjectConfigAndEnvPrecedence); this change does not touch that package

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