Skip to content

Fix false backport detection for non-default branch workflows#568

Merged
IanButterworth merged 3 commits intomasterfrom
ib/fix_backport_detection
Apr 18, 2026
Merged

Fix false backport detection for non-default branch workflows#568
IanButterworth merged 3 commits intomasterfrom
ib/fix_backport_detection

Conversation

@IanButterworth
Copy link
Copy Markdown
Member

In Gitflow-style repos (e.g. MLJBase.jl) where the default branch is develop and releases happen on master, TagBot incorrectly marked every release as a backport because branches_of_commit returned master (a non-default branch).

The backport flag now relies solely on _is_backport(), which checks whether a higher-version tag already exists—the actual semantic definition of a backport.

Fixes #566

IanButterworth and others added 3 commits April 17, 2026 10:56
In Gitflow-style repos (e.g. MLJBase.jl) where the default branch is
`develop` and releases happen on `master`, TagBot incorrectly marked
every release as a backport because `branches_of_commit` returned
`master` (a non-default branch).

The backport flag now relies solely on `_is_backport()`, which checks
whether a higher-version tag already exists—the actual semantic
definition of a backport.

Fixes #566

Co-authored-by: Claude <noreply@anthropic.com>
@IanButterworth IanButterworth marked this pull request as ready for review April 18, 2026 11:46
@IanButterworth IanButterworth merged commit f6a1119 into master Apr 18, 2026
2 checks passed
@IanButterworth IanButterworth deleted the ib/fix_backport_detection branch April 18, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TagBot incorrectly thinks that latest release is a backport?

1 participant