Skip to content

chore: rename default branch master to main - #3

Merged
nnayda merged 1 commit into
masterfrom
chore/rename-master-to-main
Jun 18, 2026
Merged

chore: rename default branch master to main#3
nnayda merged 1 commit into
masterfrom
chore/rename-master-to-main

Conversation

@nnayda

@nnayda nnayda commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Prep for renaming the fork's default branch from master to main. Updates every hardcoded reference so that the moment the GitHub default-branch setting is flipped, CI / CodeQL / docs publishing keep working.

Changes

  • Workflows: ci.yml, codeql.yml, docs.yml push triggers + concurrency gates → main
  • Docs deploy guards: the github.ref == 'refs/heads/master' conditions in docs.yml (these gate Pages publish/deploy and would silently fail closed otherwise)
  • pyproject.toml: Changelog URL blob/masterblob/main
  • Prose: README, CONTRIBUTING, AGENTS, pr-title.yml comment

Not changed

The upstream-sync flow is unaffected. python-openxml/python-docx keeps its master branch, so git merge upstream/master still works — only our local target branch changes.

Merge order ⚠️

Merge this before flipping the GitHub default branch (Settings → Branches → rename). Renaming first would take CI/docs dark until this lands.

After renaming on GitHub, each local clone needs:

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

🤖 Generated with Claude Code

Update all hardcoded references to the default branch ahead of the
GitHub rename from `master` to `main`:

- CI, CodeQL, and Docs workflow push triggers and concurrency gates
- Docs Pages publish/deploy branch guards (would otherwise fail closed)
- pyproject Changelog URL
- README / CONTRIBUTING / AGENTS / pr-title prose

Upstream-sync instructions are unchanged: `python-openxml/python-docx`
keeps its `master` branch, so `git merge upstream/master` still applies.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nnayda
nnayda merged commit d17e230 into master Jun 18, 2026
12 of 13 checks passed
@nnayda
nnayda deleted the chore/rename-master-to-main branch June 18, 2026 03:11
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.

1 participant