Skip to content

feat(commitmsg): preserve valid message content - #253

Open
ssmanji89 wants to merge 3 commits into
marcus:mainfrom
ssmanji89:feat/commit-message-normalizer-iter3
Open

ssmanji89 wants to merge 3 commits into
marcus:mainfrom
ssmanji89:feat/commit-message-normalizer-iter3

Conversation

@ssmanji89

Copy link
Copy Markdown

Summary

  • add a dependency-free commit message normalizer and nightshift commit-msg command
  • install the commit-msg hook with the existing pre-commit hook
  • preserve valid body formatting, leading punctuation, and distinct trailer values
  • document the format and bypass behavior

Verification

  • go test ./...
  • go vet ./...
  • go build ./...
  • go test -race ./...
  • isolated temporary repository commit-msg hook test
  • bash -n scripts/pre-commit.sh scripts/commit-msg.sh

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift

Keep trailers in a separate canonical block and run the fallback CLI
from the repository module.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
Keep punctuation, body formatting, and distinct trailer values intact
during normalization.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift

This branch has not been deployed

No deployments
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