Skip to content

PYTHON-5941 pt2 automatically create release branch for minor releases - #3251

Merged
sleepyStick merged 8 commits into
mongodb:mainfrom
sleepyStick:PYTHON-5941
Nov 25, 2026
Merged

sleepyStick merged 8 commits into
mongodb:mainfrom
sleepyStick:PYTHON-5941

Conversation

@sleepyStick

Copy link
Copy Markdown
Contributor

PYTHON-5941

Changes in this PR

Test Plan

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)?
  • Is there test coverage?
  • Is any followup work tracked in a JIRA ticket? If so, add link(s).

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.0 releases 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

Comment thread .github/workflows/release-python.yml Resolved
Comment thread .github/workflows/release-python.yml Resolved
@sleepyStick
sleepyStick marked this pull request as ready for review November 25, 2026 02:39
@sleepyStick
sleepyStick requested a review from a team as a code owner November 25, 2026 02:39
@sleepyStick
sleepyStick requested review from blink1073 and a balanced review from Copilot November 25, 2026 02:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are blocking the release-branch automation changes.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

blink1073
blink1073 previously approved these changes Nov 25, 2026

@blink1073 blink1073 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@blink1073

Copy link
Copy Markdown
Member

Wait, should we be bumping the versions of drivers-github-tools in this PR as well?

@sleepyStick

Copy link
Copy Markdown
Contributor Author

Wait, should we be bumping the versions of drivers-github-tools in this PR as well?

ohh good call! just did it!

@blink1073 blink1073 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sleepyStick
sleepyStick merged commit f4b9580 into mongodb:main Nov 25, 2026
70 checks passed
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.

4 participants