Set merge request target branch from target branch rule
What does this MR do and why?
Automatically sets the target branch for a merge request by using the TargetBranchRules::FindService
. If no rule exists for the source branch then the merge requests default branch will be used.
Screenshots or screen recordings
How to set up and validate locally
- Enable
target_branch_rules_flag
feature flag - Create a new
TargetBranchRule
in the rails console - Create a new merge request with the source branch from the target branch rule created above
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.