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 toci
- The second
main
: indicates branch name
![](/-/project/278964/uploads/21db5ba5589d6819e46e4a56e9fb8f38/image.png)
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.
-
I have evaluated the MR acceptance checklist for this MR.
cc @mtan-gitlab
Edited by Zhiyuan Lu