Skip to content

Use a default branch that's not "master" in template

Angelo Gulina requested to merge agulina-master-patch-73409 into master

What does this MR do?

The Git community has since some time started to reconsider the naming of repository branches that might bring negative connotations. As an example, GitHub has announced that the default name for repo is now main.

The MR aims to solve a practical problem when a repository wants to adhere to this value and practice. As an example, an OSS project I am maintaining and for which I started playing with GitLab managed Terraform State. See here where I need to extend the job only in order to use a different default branch.

This initiative fits with or Values of DIB and guidelines in communication (e.g. use of whitelist/blacklist) and aligns with plans related to other features to support the same approach (as per this conversation (internal Slack thread)).

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Angelo Gulina

Merge request reports