Skip to content

feat: enhance commit-msg hook with full Conventional Commits spec - #556

Open
Prozy wants to merge 2 commits into
SuperClaude-Org:SuperClaude-v2from
Prozy:feature/commit-normalize
Open

feat: enhance commit-msg hook with full Conventional Commits spec#556
Prozy wants to merge 2 commits into
SuperClaude-Org:SuperClaude-v2from
Prozy:feature/commit-normalize

Conversation

@Prozy

@Prozy Prozy commented May 16, 2026

Copy link
Copy Markdown

Summary

  • Add perf and ci commit types to align with the full Conventional Commits specification
  • Add passthrough for merge, fixup, squash, and amend commits so the hook doesn't interfere with git workflows
  • Add SKIP_COMMIT_MSG_HOOK=1 environment variable for CI/automation bypass
  • Integrate hook installation into install.sh via --install-hooks flag
  • Update execution-patterns.yml and pre-commit-patterns.yml for consistency

Test plan

  • Valid conventional commit types (feat, fix, docs, style, refactor, test, chore, perf, ci) accepted
  • Uppercase types auto-normalized to lowercase
  • Trailing period auto-removed from subject
  • Invalid types rejected with helpful error message
  • Merge, fixup, squash, and amend commits pass through without validation
  • SKIP_COMMIT_MSG_HOOK=1 bypasses all validation
  • Breaking change indicator (!) works with and without scope
  • Empty scope feat() correctly rejected
  • Subject over 72 chars correctly rejected
  • Body trailers (Co-Authored-By, Nightshift-Task) preserved during wrapping

🤖 Generated with Claude Code


Automated by nightshift

Prozy and others added 2 commits May 14, 2026 10:06
Add commit-msg-normalize.sh that validates and auto-normalizes commit
messages: enforces valid type prefix, lowercase type, 72-char subject
limit, strips trailing periods, wraps body at 72 chars while preserving
git trailers and URLs. Integrate into pre-commit-patterns.yml,
execution-patterns.yml Commit_Standards, and git.md command docs.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…port

Add perf and ci types to align with the full Conventional Commits
specification. Add passthrough for merge, fixup, squash, and amend
commits so the hook doesn't interfere with git workflows. Add
SKIP_COMMIT_MSG_HOOK env var for CI/automation bypass. Integrate
hook installation into install.sh via --install-hooks flag. Update
execution-patterns.yml and pre-commit-patterns.yml for consistency.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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