Rename default branches to main
Context
In line with GitLab's own plan, we were thinking about renaming the master branches across all projects under the BuildGrid umbrella to 'main'.
GitLab has now made this an option for all new projects.
Task Description
-
Discuss with the Slack community as to whether there is buy-in to do this. If so... -
Email the BuildGrid mailing list. -
Write up the plan for how this will work - Follow these instructions (or similar).
- Maybe this will help?
-
Ensure that everything that can/will be affected by such a change is logged with a plan to address.
The plan (broadly)...
-
Create new branch named "main" from master branch -
Mirror commits from master to main -
Add main to pipeline rules -
Create redirects for web requests from master to main -
Change the default branch to be the main branch, protect main -
Flip the mirror so that master now mirrors commits from main -
Remove master from protected branches -
... -
Ensure all relevant documentation is updated accordingly. -
Re-communicate the change with a deadline date for the removal of the master branch -
Delete the master branch
Do this for the following repos:
-
buildbox-tools -
buildbox-home -
buildbox-integration -
buildbox-e2e -
buildbox-run-hosttools -
buildbox-run-bubblewrap -
buildbox-fuse -
buildbox-run-userchroot -
buildbox-casd -
buildbox-common -
buildbox-worker -
userchroot -
buildgrid -
bgd-browser -
BuildGrid Deployments -
buildgrid.hub.docker.com -
buildgrid.build
Acceptance Criteria
- All default branches under the BuildGrid group will be called 'main', and documentation will be updated to reflect this change.
Consider whether the following are required, and complete if so:
[ ] Unit tests[ ] Metrics-
Documentation update(s)
Edited by Beth