Skip to content

Commit

Permalink
ci: add DNM label rules for mergify
Browse files Browse the repository at this point in the history
Signed-off-by: Praveen M <m.praveen@ibm.com>
  • Loading branch information
iPraveenParihar authored and mergify[bot] committed Jun 21, 2024
1 parent d8727ec commit e3d2384
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pull_request_rules:
- name: merge after two approvals (no API changes)
conditions:
- base~=^(main)|(release-.+)$
- label!=DNM
- label!=api
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"
Expand All @@ -46,6 +47,7 @@ pull_request_rules:
- name: API changes needs approval from a contributor and a reviewer
conditions:
- base~=^(main)|(release-.+)$
- label!=DNM
- label=api
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"
Expand All @@ -63,6 +65,13 @@ pull_request_rules:
queue: {}
dismiss_reviews: {}
delete_head_branch: {}
- name: pr title contains DNM
conditions:
- title~=DNM
actions:
label:
add:
- DNM
- name: label API change
conditions:
- files~=^(api/)
Expand Down

0 comments on commit e3d2384

Please sign in to comment.