Repository navigation
PYTHON-5941 pt2 automatically create release branch for minor releases - #3251
Merged
Merged
Conversation
…ver into PYTHON-5941
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
An invalid reusable-workflow reference prevents all release jobs from running, and the branch action retains the published version instead of advancing to a next-patch development version.
2 open issues
What changed in this PR
This PR connects release-branch creation to PyMongo’s release pipeline, aiming to create a vX.Y branch after a successful major or minor release.
Changes:
- Adds a reusable workflow call after post-publish completes.
- Computes branch names for
X.Y.0releases while preserving manual dispatch and skipping patch releases. - Fetches full history and tags so branch creation can resolve the release tag.
| File | Description |
|---|---|
.github/workflows/release-python.yml |
Invokes branch creation after release completion. |
.github/workflows/create-release-branch.yml |
Adds reusable inputs, conditional branch selection, and full-history checkout. |
Review effort: Balanced
sleepyStick
marked this pull request as ready for review
November 25, 2026 02:39
sleepyStick
requested review from
blink1073
and
a balanced review from Copilot
November 25, 2026 02:39
Member
|
Wait, should we be bumping the versions of drivers-github-tools in this PR as well? |
Contributor
Author
ohh good call! just did it! |
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.

PYTHON-5941
Changes in this PR
Test Plan
Checklist
Checklist for Author
Checklist for Reviewer