Commit f6a1119
Fix false backport detection for non-default branch workflows (#568)
* Fix false backport detection for non-default branch workflows
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>
* fix flake8
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 91e6323 commit f6a1119
2 files changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
418 | 448 | | |
419 | 449 | | |
420 | 450 | | |
| |||
0 commit comments