Skip to content

chore: harden commit message validation#91

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

chore: harden commit message validation#91
marcus wants to merge 1 commit intomainfrom
feat/commit-message-normalizer-v2

Conversation

@marcus
Copy link
Copy Markdown
Owner

@marcus marcus commented Apr 1, 2026

Summary

  • narrow the merge exemption so ordinary subjects like Merge cleanup fail validation
  • validate PR commits from merge-base..head and keep push validation scoped to new commits
  • install both hooks through Git's resolved hooks directory and document the policy in README

Verification

  • bash -n scripts/commit-msg.sh
  • scripts/commit-msg.sh smoke tests for valid, invalid, and merge subjects
  • make install-hooks
  • worktree make install-hooks smoke test
  • go test ./...

Tighten merge exemptions, validate PR commit ranges from merge-base, and install hooks through Git's resolved hooks directory.

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