chore: normalize commit messages#194
Draft
gregggreg wants to merge 5 commits into
Draft
Conversation
Nightshift-Task: commit-normalize Nightshift-Ref: https://github.com/marcus/nightshift
Nightshift-Task: commit-normalize Nightshift-Ref: https://github.com/marcus/nightshift
Nightshift-Task: commit-normalize Nightshift-Ref: https://github.com/marcus/nightshift
Nightshift-Task: commit-normalize Nightshift-Ref: https://github.com/marcus/nightshift
Nightshift-Task: commit-normalize Nightshift-Ref: https://github.com/marcus/nightshift
gregggreg
force-pushed
the
commit-normalize
branch
from
July 22, 2026 09:35
b6bb98e to
25b0da7
Compare
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
Format
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 recognized combined-commit messages are preserved byte for byte. Malformed or ambiguous subjects are rejected without changing the message file.
The installer writes only repository-local configuration. It is idempotent for
.githooksand fails without changing configuration when another localcore.hooksPathis already set.Iteration 3 fix
The regression runner previously inherited caller Git configuration. A global
core.commentString=//therefore caused the default#combined-commit fixture to fail even though that setting is supported by the normalizer. The runner now disables system configuration, points global configuration at an isolated test file, and establishes a deterministic command-scope default. Explicit custom-prefix tests still override that baseline.Validation
make testwith caller globalcore.commentString=//(all Go tests and 29 normalizer regressions)shanddash, including inherited command-scope Git configurationgo vet ./...go build ./...sh -nanddash -nfor all hook-related shell filesgit diff --checkStack
This targets
docs-backfillbecause the task required branching from the original checked-out branch. It should be reviewed after #104.