From 06fda720b5ed968a6457f641e48a0366819671b1 Mon Sep 17 00:00:00 2001 From: Alvin Gounder <agounder@gitlab.com> Date: Tue, 9 Jan 2024 16:48:52 +0000 Subject: [PATCH] Add rule application order to "rules for target branches" --- doc/user/project/repository/branches/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/user/project/repository/branches/index.md b/doc/user/project/repository/branches/index.md index 1e52aaaa2116b..d6bcae5732293 100644 --- a/doc/user/project/repository/branches/index.md +++ b/doc/user/project/repository/branches/index.md @@ -301,6 +301,8 @@ When you create a merge request, the workflow checks the name of the branch. If branch name matches the workflow, the merge request targets the branch you specify. If the branch name does not match, the merge request targets the default branch of the project. +Rules are processed on a "first-match" basis - if two rules match the same branch name, the top-most rule is applied. + Prerequisites: - You must have at least the Maintainer role. -- GitLab