Workzone: Order reviewer and merge rules by priority
Workzone now supports rule ordering for pull request reviewer, signature approval and merge rules. Rules are matched in order against a pull request. The first matching rule is executed.
To re-arrange the order of rules in the list, click the up or down arrow to change the position and priority.
Place specific branch matching expressions at the top.
Place more open branch matching expressions towards the bottom.
The first rule that matches a pull request’s source and destination branch will be executed.
Place rules with close or direct branch matching expressions at the top of the list and the catch-all rule at the bottom.
For example:
1. (release/current > main) with reviewers: team1, qa-group
2. (release/* > main) with reviewers: qa-group
3. ( > main) with reviewers: bot-reviewer
In this case if someone creates a pull request from any branch other than release/* a bot user gets assigned. Any pull request from release/current gets reviewers groups team1 and qa-group, but if the pull request source branch matches anything else than release/current only qa-group is added as reviewers.
All reviewer, signature approval and (auto)merge rules follow the same match by priority approach.