Skip to content

Fix typo of branch name "main"

What does this MR do and why?

There are two main in this paragraph (as shown in the screenshot), and they mean different things.

  • The first main: represents the database, similar to ci
  • The second main: indicates branch name

The second main needs to be changed to master because GitLab's default branch is master. We can also see in the code that the default value of TARGET here is master.

# https://gitlab.com/gitlab-org/gitlab/-/blob/master/scripts/migration_schema_validator.rb#L75

def target_branch
  ENV['CI_MERGE_REQUEST_TARGET_BRANCH_NAME'] || ENV['TARGET'] || ENV['CI_DEFAULT_BRANCH'] || 'master'
end

Screenshots or screen recordings

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.


cc @mtan-gitlab

Edited by Zhiyuan Lu

Merge request reports