Skip to content

fix(scripts/releaser): scope breaking-change check to commits since previous release - #29487

Merged
f0ssel merged 2 commits into
mainfrom
fix/releaser-breaking-change-range
Sep 17, 2026
Merged

f0ssel merged 2 commits into
mainfrom
fix/releaser-breaking-change-range

Conversation

@f0ssel

@f0ssel f0ssel commented Sep 17, 2026

Copy link
Copy Markdown
Member

The patch-release breaking-change check in ./scripts/release.sh queried every merged PR labeled release/breaking against the release branch with no range filter, so breaking changes shipped in earlier patches were reported again on every subsequent patch release.

Both the ! title marker and the release/breaking label are now evaluated only over prevVersion..HEAD, using the same PR metadata lookup the release notes already use (ghBuildPRMetadataMap + categorizeCommit). The now-unused ghListPRsWithLabel is removed and the metadata fetch-with-fallback is extracted into loadPRMetadata so both call sites share it.

The GPG signing prompt was already removed on main in #27422, so this PR only covers the breaking-change check. Backporting to release/2.34 and release/2.35 needs both #27422 and this PR; release/2.36 only needs this PR.

Supersedes #27065.


Generated by Coder Agents on behalf of @f0ssel.

…revious release

The patch-release breaking-change check listed every merged PR labeled
release/breaking against the branch with no range filter, so breaking
changes from earlier releases on the branch were reported on every
subsequent patch. Both the "!" title marker and the release/breaking
label are now evaluated only over prevVersion..HEAD, reusing the same
PR metadata lookup the release notes use.
Extract the detection loop into findBreakingCommits so it can be
exercised with fixtures covering the "!" title marker, labels resolved
by merge SHA and by PR number (cherry-picks), and the no-metadata
fallback.
@f0ssel
f0ssel marked this pull request as ready for review September 17, 2026 17:44
@f0ssel
f0ssel merged commit 86a050d into main Sep 17, 2026
33 checks passed
@f0ssel
f0ssel deleted the fix/releaser-breaking-change-range branch September 17, 2026 19:10
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants