Change default branch to main
Overview
https://gitlab.com/gitlab-org/gitlab/-/issues/221014 has shipped and GitLab.com is going to change the default branch to be main
instead of master
to follow the new default branch of git
.
Checklist Template
-
Create main
branch from master -
Set main
to be a protected branch -
Update all reference to master
tomain
inside of the GitLab Runner repository -
Update Settings > Repository > Default Branch
-
Update all open merge requests to point to main
by running mastertomain -
Sync main
withmaster
git fetch origin git checkout main git reset --hard origin/master git push origin main
-
Update security fork -
Update any upstream reference to project -
Announce that the process is done in slack -
Delete master
branch
Projects to change
https://gitlab.com/gitlab-org/charts/gitlab-runner
-
Create main
branch from master -
Set main
to be a protected branch👉 #27239 (comment 589767112) -
Update all reference to master
tomain
inside of the GitLab Runner repository👉 gitlab-org/charts/gitlab-runner!298 (merged) -
Update Settings > Repository > Default Branch
👉 #27239 (comment 591695255) -
Update all open merge requests to point to main
by running mastertomain👉 #27239 (comment 591693633) -
Sync main
withmaster
git fetch origin git checkout main git reset --hard origin/master git push origin main
-
Delete master
branch -
Update security fork 👉 #27239 (comment 591695255) -
Update any upstream docs reference to gitlab-runner-charts -
gitlab-org/gitlab
👉 gitlab!62917 (merged) -
gitlab-org/gitlab-runner
👉 !2930 (merged) -
gitlab-org/ci-cd/runner-release-helper
: gitlab-org/ci-cd/runner-release-helper!60 (merged)
-
-
Announce that the process is done in slack
https://gitlab.com/gitlab-org/gitlab-runner
-
Create main
branch from master -
Set main
to be a protected branch👉 #27239 (comment 588679841) -
Update all reference to master
tomain
inside of the GitLab Runner repository👉 !2930 (merged) -
Update Settings > Repository > Default Branch
-
Update all open merge requests to point to main
by running mastertomain -
Sync main
withmaster
git fetch origin git checkout main git reset --hard origin/master git push origin main
-
Update security fork -
Update any upstream docs reference to gitlab-runner -
gitlab-org/gitlab
👉 gitlab!62917 (merged) -
gitlab-org/ci-cd/runner-release-helper
: gitlab-org/ci-cd/runner-release-helper!60 (merged) -
gitlab-org/ci-cd/tests/runner-incept
: gitlab-org/ci-cd/tests/runner-incept!22 (merged)
-
-
Announce that the process is done in slack -
Delete master
branch
https://gitlab.com/gitlab-org/ci-cd/custom-executor-drivers/autoscaler
-
Create main
branch from master -
Set main
to be a protected branch👉 #27239 (comment 589781262) -
Update all reference to master
tomain
inside of the GitLab Runner repository👉 gitlab-org/ci-cd/custom-executor-drivers/autoscaler!157 (merged) -
Update Settings > Repository > Default Branch
-
Update all open merge requests to point to main
by running mastertomain -
Sync main
withmaster
git fetch origin git checkout main git reset --hard origin/master git push origin main
-
Delete master
branch -
Announce that the process is done in slack
http://gitlab.com/gitlab-org/ci-cd/shared-runners/images/macstadium/orka/
-
Create main
branch from master -
Set main
to be a protected branch👉 #27239 (comment 591711193) -
Update all reference to master
tomain
inside of the GitLab Runner repository👉 gitlab-org/ci-cd/shared-runners/images/macstadium/orka!102 (merged) -
Update Settings > Repository > Default Branch
👉 #27239 (comment 591712356) -
Update all open merge requests to point to main
by running mastertomain👉 -
Sync main
withmaster
git fetch origin git checkout main git reset --hard origin/master git push origin main
-
Announce that the process is done in slack -
Delete master
branch
https://gitlab.com/gitlab-org/ci-cd/shared-runners/images/gcp/windows-containers
-
Create main
branch from master -
Set main
to be a protected branch👉 #27239 (comment 591736498) -
Update all reference to master
tomain
inside of the GitLab Runner repository👉 gitlab-org/ci-cd/shared-runners/images/gcp/windows-containers!37 (merged) -
Update Settings > Repository > Default Branch
-
Update all open merge requests to point to main
by running mastertomain -
Sync main
withmaster
git fetch origin git checkout main git reset --hard origin/master git push origin main
-
Announce that the process is done in slack -
Delete master
branch
https://gitlab.com/gitlab-org/ci-cd/runner-release-helper
-
Create main
branch from master -
Set main
to be a protected branch👉 #27239 (comment 591810780) -
Update all reference to master
tomain
inside of the GitLab Runner repository👉 gitlab-org/ci-cd/runner-release-helper!61 (merged) -
Update Settings > Repository > Default Branch
-
Update all open merge requests to point to main
by running mastertomain -
Sync main
withmaster
git fetch origin git checkout main git reset --hard origin/master git push origin main
-
Update any upstream docs reference to project -
Update PROCESS.md 👉 !2939 (merged)
-
-
Announce that the process is done in slack -
Delete master
branch
https://gitlab.com/gitlab-org/ci-cd/tests/runner-incept
-
Create main
branch from master -
Set main
to be a protected branch👉 #27239 (comment 591834281) -
Update Settings > Repository > Default Branch
👉 #27239 (comment 591839209) -
Update all open merge requests to point to main
by running mastertomain👉 #27239 (comment 591839853) -
Sync main
withmaster
git fetch origin git checkout main git reset --hard origin/master git push origin main
-
Announce that the process is done in slack
https://gitlab.com/gitlab-org/ci-cd/docker-machine
-
Create main
branch from master -
Set main
to be a protected branch👉 #27239 (comment 591881545) -
Update all reference to master
tomain
inside of the GitLab Runner repository👉 gitlab-org/ci-cd/docker-machine!56 (merged) -
Update Settings > Repository > Default Branch
-
Update all open merge requests to point to main
by running mastertomain -
Sync main
withmaster
git fetch origin git checkout main git reset --hard origin/master git push origin main
-
Announce that the process is done in slack -
Delete master
branch
Edited by Steve Xuereb