Skip to content

Normalize commit hook installation and validation#116

Open
marcus wants to merge 1 commit intomainfrom
feat/commit-normalize-fix3
Open

Normalize commit hook installation and validation#116
marcus wants to merge 1 commit intomainfrom
feat/commit-normalize-fix3

Conversation

@marcus
Copy link
Copy Markdown
Owner

@marcus marcus commented Apr 12, 2026

Summary

  • install hooks via Git's active hooks directory so make install-hooks works with .git/hooks, core.hooksPath, and linked worktrees
  • add a repo-managed commit-msg hook that rejects whitespace-only summaries while allowing merge, revert, fixup, and squash commits
  • document the commit message convention and hook behavior in the README

Testing

  • go test ./...
  • smoke-tested valid and invalid commit subjects
  • verified hook install paths for default hooks, core.hooksPath, and linked worktrees

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