New Condition: `target_branch` for Merge Requests
Proposal
You may want to filter on certain Merge Requests that target your master
branch and exclude all others, this feature will enable that
resource_rules:
merge_requests:
rules:
- name: Flag `master` MRs
conditions:
state: opened
target_branch: master
actions:
labels:
- "targets master"
comment: |
/cc @project_maintainers
We could also allow for a condition that checks a Merge Request does not target a specific branch. As an example, we could locate all open MRs that are not targeting the default branch
Notes:
target_branch
is a field specific to Merge Requests