Skip to content

Fix missing merged PR lists for mainline releases#589

Open
IanButterworth wants to merge 1 commit into
masterfrom
ib/fix_more
Open

Fix missing merged PR lists for mainline releases#589
IanButterworth wants to merge 1 commit into
masterfrom
ib/fix_more

Conversation

@IanButterworth

Copy link
Copy Markdown
Member

Fixes #574

claude:


When a release commit on the default branch was also reachable from other branches (e.g. feature branches created off main after the commit, or long-lived branches that had merged main), branches_of_commit returned those branches and the changelog took the backport path. PRs were then filtered to ones merged into those branches via _pulls_on_branches, which matches nothing since PRs merge into the default branch, so the "Merged pull requests" section came out empty while "Closed issues" (which use a date-only filter) still appeared. This is why the problem was intermittent: it depended on which branches happened to contain the release commit when TagBot ran.

branches_of_commit now returns an empty list whenever the default branch contains the commit: a commit reachable from the default branch is a mainline release regardless of what other branches also contain it. Genuine backports (commit not on the default branch) are unaffected.

Also document in DEVGUIDE.md that poetry run pytest can run against a stale installed copy of tagbot instead of the local sources; use poetry run python -m pytest or make pytest.

When a release commit on the default branch was also reachable from
other branches (e.g. feature branches created off main after the
commit, or long-lived branches that had merged main),
branches_of_commit returned those branches and the changelog took the
backport path. PRs were then filtered to ones merged into those
branches via _pulls_on_branches, which matches nothing since PRs merge
into the default branch, so the "Merged pull requests" section came
out empty while "Closed issues" (which use a date-only filter) still
appeared. This is why the problem was intermittent: it depended on
which branches happened to contain the release commit when TagBot ran.

branches_of_commit now returns an empty list whenever the default
branch contains the commit: a commit reachable from the default branch
is a mainline release regardless of what other branches also contain
it. Genuine backports (commit not on the default branch) are
unaffected.

Also document in DEVGUIDE.md that `poetry run pytest` can run against
a stale installed copy of tagbot instead of the local sources; use
`poetry run python -m pytest` or `make pytest`.

Fixes #574

Co-Authored-By: Claude <claude@users.noreply.github.com>
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.

Missing merged PR lists in release notes

1 participant