ci(release): exclude scoped docs/test/chore commits from the changelog - #1463
Open
hisco wants to merge 1 commit into
Open
ci(release): exclude scoped docs/test/chore commits from the changelog#1463hisco wants to merge 1 commit into
hisco wants to merge 1 commit into
Conversation
'^docs:' is a literal prefix, so it matches "docs: x" but never "docs(mcp): x". The same applies to test and chore. Scoped commits have been shipping in public release notes as a result — v1.10.0's notes carry "test(crossplane-demo): cover v1 claim + v2 namespaced XR on Crossplane 2.x". Add an optional (scope) group to each pattern, and exclude bare dependency roll-ups, which had no pattern covering them at all.
nadaverell
approved these changes
Aug 23, 2026
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.
The bug
.goreleaser.yaml's changelog excludes are literal prefixes:^docs:matchesdocs: xbut notdocs(mcp): x. Same fortestandchore. Since most commits here are scoped, the filters catch almost nothing.This is not theoretical — it has already shipped. v1.10.0's public release notes contain:
Effect on the next release
Two commits currently in the v1.11.0 range are filtered out by this change:
Neither belongs in customer-facing notes.
Change
An optional
(scope)group on each pattern, plusdeps— a bare dependency roll-up had no pattern covering it at all.Worth landing before
v1.11.0is tagged so the release notes come out clean, but it does not block the release.Note
Low Risk
Release-note filtering only; no runtime, auth, or application behavior changes.
Overview
GoReleaser release changelog filters now treat conventional-commit scopes correctly so internal commits stop appearing in public GitHub release notes.
In
.goreleaser.yaml, thechangelog.filters.excludepatterns fordocs,test, andchorewere updated from literal prefixes like^docs:to^docs(\(.+\))?:(and the same fortestandchore), so bothdocs: …anddocs(scope): …are excluded. A new^deps(\(.+\))?:rule was added for dependency roll-up commits. A short comment documents why the optional scope group is required.Reviewed by Cursor Bugbot for commit e550bac. Bugbot is set up for automated code reviews on this repo. Configure here.