Skip to content

chore: normalize commit messages#191

Draft
gregggreg wants to merge 1 commit into
marcus:mainfrom
gregggreg:codex/commit-normalize-20260719
Draft

chore: normalize commit messages#191
gregggreg wants to merge 1 commit into
marcus:mainfrom
gregggreg:codex/commit-normalize-20260719

Conversation

@gregggreg

Copy link
Copy Markdown

Summary

  • add an opt-in commit-msg hook for Conventional Commit-style subjects
  • cover valid, invalid, CRLF, comment, trailer, and Git-generated message cases with an independent fixture suite
  • install both repository hooks through make install-hooks and document the convention and escape hatch

Format

Subjects use type: summary or type(scope): summary, with an optional ! breaking-change marker. Merge, revert, fixup!, and squash! subjects generated by Git remain accepted. Commit bodies and Nightshift trailers are not modified.

Verification

  • bash -n scripts/commit-msg.sh
  • bash -n scripts/commit-msg_test.sh
  • make test-commit-msg (22 passed)
  • go test ./...
  • git diff --check

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