-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Infrastructure
-
None
-
Python Drivers
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
GitHub has been encouraging all repositories to rename their default branch from master to main. See GitHub's explanation and tooling guide: https://github.com/github/renaming
Internal precedent:
- DOP-3949 — "Rename our primary branches to main" (closed/fixed): Establishes that "All DOP-managed repositories use main as their primary branch name."
CSHARP-5197— "Rename default branch to main": Documents how the C# driver completed this. Specifically: renamed the default GitHub branch to main and updated Evergreen configuration to match.
Steps to complete:
- Rename the master branch to main on GitHub (GitHub's rename tool automatically retargets open PRs)
- Set main as the default branch in repository settings
- Update Evergreen project configuration to reference main instead of master
- Audit any other CI, bot, or automation references to master (e.g. release scripts, .github/ workflows)
- Update contributor documentation that mentions master
*Notes for users:"
- We will make the naming change on 14 July 2026.
- If you are specifically cloning our master branch in CI, you will have to update to use main after the change.
- If you have a local clone, you will have to follow the instructions for updating your clone.
- blocks
-
PYTHON-5897 Rename pymongo default branch from master to main
-
- Blocked
-
- causes
-
PYTHON-5950 fix spec resync scripts to use main branch
-
- In Code Review
-