ci(goreleaser): categorize scoped conventional commits#15
Merged
Conversation
The changelog regexes only matched the bare type (`feat:`, `fix:`, etc.) so every scoped subject (`feat(ack):`, `fix(whois):`, `refactor(notices):`, `docs(readme):`, ...) fell through to "Others", making the grouping on the GitHub releases page nearly useless. Fix: - `(\(.+?\))?` added to every group regex so both `feat:` AND `feat(scope):` land in the right bucket. - Added `Refactor`, `Performance`, `Style` groups — refactors in particular were a big contributor to "Others" before. - Scoped `test(...)` and `chore(...)` now match the exclude filters too, consistent with the bare forms. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Thank you for contributing to this project! 😊🕹️ |
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
Fixes the goreleaser changelog regexes so commits written in the scoped conventional-commits form (
feat(scope):,fix(scope):,refactor(scope):, etc.) land in their intended buckets on the GitHub releases page instead of falling through to "Others".What was broken
The existing regexes matched the bare type only:
^.*?feat:.*$. A subject likefeat(ui): pink cursordoesn't match because the scope parens break the literalfeat:string. Nearly every non-bare commit we ship hit "Others".Also missing: a
Refactorgroup — so every refactor commit landed in "Others" even without the scope problem.What changed
(\(.+?\))?between the type and the colon — bothfeat:andfeat(scope):match now.Refactor,Performance,Style.test(...)andchore(...)exclude filters updated to handle scopes too, consistent with the bare-form exclude they used to have.Test plan
gh release editif desired🤖 Generated with Claude Code