Change Security#validate_target_branch to depend on project's default branch
#1357 (closed) plans to change GitLab default branch from master
to main
, when that happens we need to prevent security merge request from targeting master
.
Proposal
Change the implementation of Security#validate_target_branch
to use project's default branch instead of master
and main
.
This change should be under FF only to be enabled once GitLab default branch has changed, it can't be enabled before since we need to support both branches as a preparation of #1357 (closed)