Repository navigation
feat: request backport approval for semver/major and semver/minor PRs - #417
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_015m4HmvuqFEuetR4aMy4XCY
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_015m4HmvuqFEuetR4aMy4XCY
jkleinsc
approved these changes
Aug 5, 2026
dsanders11
approved these changes
Aug 5, 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.
Requested by Niklas Wenzel · Slack thread
Before
When trop created a backport PR (or saw a manual backport opened), it only requested backport approval — adding the
backport/requested 🗳label and notifying the releases WG — whenisSemverMinorPR()returned true. That predicate matched a title starting withfeat:or a literalsemver-minorlabel. Since Electron's real labels aresemver/minorandsemver/major, the label branch never matched in practice, so only PRs literally titledfeat: ...got an approval request. Breaking changes (feat!:,chore!:) andsemver/major-labeled PRs slipped through — for example electron/electron#52667 (backport of electron/electron#52351) merged without an approval request.After
Backport approval is requested whenever the PR being backported:
semver/majorlabel, orsemver/minorlabel, orfeat:, orfeat!:.The unused legacy
semver-minorlabel check has been dropped entirely.How
isSemverMinorPR()insrc/utils.tsis replaced byshouldRequestBackportApproval(), which checks thefeat:/feat!:title prefixes and then checks the PR's labels (vialabelExistsOnPR) againstSEMVER_LABELS.MINORandSEMVER_LABELS.MAJOR. Both call sites — the automatic backport path inbackportImpl()and the manual backport path inupdateManualBackport()— now use the new predicate; no other code consumed the old one. New unit tests inspec/utils.spec.tscover thesemver/majorandsemver/minorlabels,feat:andfeat!:titles, and a negativechore:case.