Skip to content

chore: restore commit message hook#133

Open
marcus wants to merge 1 commit intomainfrom
codex/commit-normalize-20260421
Open

chore: restore commit message hook#133
marcus wants to merge 1 commit intomainfrom
codex/commit-normalize-20260421

Conversation

@marcus
Copy link
Copy Markdown
Owner

@marcus marcus commented Apr 21, 2026

Summary

  • add the missing commit-msg hook script to enforce normalized commit subjects for new commits
  • install both pre-commit and commit-msg hooks from \✓ pre-commit hook installed (.git/hooks/pre-commit → scripts/pre-commit.sh)
    ✓ commit-msg hook installed (.git/hooks/commit-msg → scripts/commit-msg.sh)
  • document the expected commit message format, allowed exceptions, and bypass guidance

Testing

  • make install-hooks
  • bash -n scripts/commit-msg.sh
  • smoke-test valid and invalid commit message files
  • go test ./...
  • go build ./cmd/nightshift

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