Skip to content

Rename default branch references from master to main - #568

Open
spoenemann wants to merge 1 commit into
masterfrom
rename-default-branch
Open

Rename default branch references from master to main#568
spoenemann wants to merge 1 commit into
masterfrom
rename-default-branch

Conversation

@spoenemann

@spoenemann spoenemann commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the rename of this repository's default branch from master to main, configured in eclipse-sprotty/.eclipsefdn#6. GitHub's rename redirects old URLs and retargets open pull requests, but does not rewrite workflow files, so this PR updates everything in the repository that names the branch:

  • .github/workflows/build.yml and publish.yml trigger on main instead of master.
  • publish.yml filters maintenance branches with maintenance/* instead of maintenance-*, matching the publish environment's branch policy in the organisation configuration and the convention used across the Sprotty projects.
  • ADR-0005 documents the new trigger branches.
  • blob/master links in the README and CHANGELOG files point directly to main (the old links only kept working through the redirect).

Links into other repositories (sprotty-theia, sprotty-vscode, sprotty-server, eclipse/.github) are unchanged because those repositories keep their default branch.

Merge order

  1. Merge Rename default branch of sprotty to main .eclipsefdn#6. Otterdog renames master to main, and this PR is retargeted automatically.
  2. Merge this PR right afterwards. Until then, pushes to main trigger neither the build nor the publish workflow.

Updating local clones

After the rename, run this in every clone that still tracks master:

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

If you work from a fork, rename the branch there too (repository settings → Branches, or gh api -X POST repos/<user>/sprotty/branches/master/rename -f new_name=main) and then run git fetch --prune <fork-remote>.

🤖 Generated with Claude Code

The default branch of this repository is renamed to main via the
organisation's otterdog configuration. Update the workflow triggers,
ADR-0005, and the links into this repository accordingly. The publish
workflow now filters maintenance branches with 'maintenance/*', matching
the publish environment's branch policy in that configuration.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@spoenemann
spoenemann force-pushed the rename-default-branch branch from 7bdc4c6 to e50fc84 Compare September 4, 2026 13:16
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