Replace master references with main after default branch rename#1260
Merged
brendancol merged 1 commit intomainfrom Apr 25, 2026
Merged
Replace master references with main after default branch rename#1260brendancol merged 1 commit intomainfrom
brendancol merged 1 commit intomainfrom
Conversation
Drops master from the CI push-trigger bridge added in #1255 and updates every remaining reference to the old default branch name: - test.yml and benchmarks.yml trigger only on main; benchmarks compare against origin/main and the step label reads "push to main" - asv.conf.json branches list now just ["main"] - README badge and LICENSE link point at main; CONTRIBUTING.md prose updated - docs/source/index.rst and usage.rst example URLs updated - benchmarks/README.md prose and examples updated - .claude/commands/ release, bench, validate, and efficiency-audit scripts updated Remaining "master" occurrences in .github/workflows/test.yml (actions/checkout@master, actions/setup-python@master) refer to the external actions' own repos and are unrelated to this rename. The docs/source/conf.py "master_doc" references are Sphinx terminology, also unrelated. The ASV comment in asv.conf.json documents ASV's upstream default and stays accurate.
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.
Summary
masterfrom the CI push-trigger bridge added in Allow CI to trigger on main branch #1255 —test.ymlandbenchmarks.ymlnow trigger only onmain.origin/mastertoorigin/mainand adjusts the step label.benchmarks/asv.conf.jsonbranches list to["main"].README.md(license link, Codecov badge) andCONTRIBUTING.mdprose.docs/source/index.rst(10 example URLs),docs/source/getting_started/usage.rst, andbenchmarks/README.md..claude/commands/release, bench, validate, and efficiency-audit scripts.Context
Second step of the
master→maindefault branch rename. The first PR (#1255) widened CI triggers to accept both names so there was no coverage gap across the GitHub-side rename. This PR drops the bridge now thatmainis the default.A few "master" occurrences are intentionally left alone:
actions/checkout@masterandactions/setup-python@masterin.github/workflows/test.yml— these refer to themasterbranches of the actions' own repos, not this one. Unpinned@masteris a separate hygiene concern worth a follow-up PR to pin to@v4/@v5.master_docreferences indocs/source/conf.pyand Sphinx templates — this is Sphinx's own config variable name.asv.conf.json— documents ASV's upstream behavior, not this project's branch.Contributor migration
If you have a local clone of this repository, run:
```bash
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
git remote prune origin
```
Test plan