chore: normalize commit messages#186
Draft
gregggreg wants to merge 2 commits into
Draft
Conversation
Nightshift-Task: commit-normalize Nightshift-Ref: https://github.com/marcus/nightshift
gregggreg
force-pushed
the
nightshift/commit-normalize
branch
from
July 15, 2026 09:14
7530169 to
ea52342
Compare
Nightshift-Task: commit-normalize Nightshift-Ref: https://github.com/marcus/nightshift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
core.commentChar,core.commentString, or the default#prefix.githooksFormat
Supported subjects use
type(scope)!: summary, with optional scope and breaking-change marker. Supported types arebuild,chore,ci,docs,feat,fix,perf,refactor,style, andtest.The normalizer lowercases supported types, normalizes separator spacing, collapses repeated subject whitespace, trims surrounding blank lines, and removes trailing whitespace. Merge, revert, autosquash, stash, and comment-led Git-generated messages are preserved byte for byte.
Validation
make test(all Go tests and 16 normalizer regressions)go vet ./...go build ./...sh -n scripts/normalize-commit-message.sh tests/commit-message-normalizer.sh .githooks/commit-msg .githooks/pre-commitdash -n scripts/normalize-commit-message.sh tests/commit-message-normalizer.sh .githooks/commit-msg .githooks/pre-commitdash, including idempotencegit diff --checkStack
This targets
docs-backfillbecause the task required branching from the original checked-out branch. It should be reviewed after #104.