feat: process commit detection and revert type support#161
Closed
feat: process commit detection and revert type support#161
Conversation
Add `is_process_commit()` function to detect platform-generated commits (GitHub/GitLab/Gerrit merges, git revert, fixup, squash, and initial commits) using simple first-line prefix matching. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add `revert` as the 11th default conventional commit type. Reverts trigger a patch bump and appear in changelogs under a "Reverts" section. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Process commits (merges, reverts, fixups) are now silently skipped in `check --range` instead of being reported as failures. The count of skipped commits is shown separately. JSON output includes a `skipped` field for process commits. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Explicitly filter out process commits in both semver and calver bump paths before parsing, making the filtering intentional rather than relying on implicit parse failures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update SPEC.md with revert in default types, bump rules showing revert as patch, and new section 2.3.3 documenting process commit detection patterns and behaviour in check and bump. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Off-track — this was meant to be #138 (scheme=patch). Closing. |
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
Closes #160
is_process_commit()classifier tostandard-commitcrate — detects merge commits (GitHub, GitLab, Gerrit), reverts, fixups, squash, and initial commits via first-line prefix matchingrevertas 11th default commit type with patch bump rule and "Reverts" changelog sectioncheck --rangesilently skips process commits and reports count separatelybumpexplicitly filters process commits before version calculationreverttype throughoutTest plan
cargo test --workspace)cargo clippy --workspace -- -D warnings)git std check --rangeon a repo with merge commits — merges skipped, not failedgit std check "revert: undo auth changes"— valid🤖 Generated with Claude Code