Do foundational work to support to support gitlab-org/gitlab default branch
Overview
gitlab-com/gl-infra/delivery#1357 (closed) plans to rename gitlab-org/gitlab
default branch from master
to main
, the timeline is still in the works (it might happen during the first quarter of 2021) but when it happens we should be prepared.
Let's use this issue to discuss what needs to be done on GitLab Runner before the switch.
Proposal
I'm not certain this project depends on a hardcoded master
branch for gitlab-org/gitlab
. From a quick search, seems it only references master
on a doc and a yml file:
./.gitlab/ci/docs.gitlab-ci.yml:14: - wget https://gitlab.com/gitlab-org/gitlab/-/raw/master/scripts/trigger-build
./common/variables_test.go:16:// https://gitlab.com/gitlab-org/gitlab/blob/master/doc/ci/variables/predefined_variables.md
./docs/executors/docker.md 229:[CI services examples](https://gitlab.com/gitlab-org/gitlab-ce/tree/master/doc/ci/services/README.md).
./docs/executors/docker.md 440:[using PostgreSQL as a service](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/ci/services/postgres.md).
Rough plan could be as follow:
- Identify what areas of the GitLab Runner codebase depend on a hardcoded
master
branch forgitlab-org/gitlab
- Adjust the corresponding files (if any)
Edited by Steve Xuereb