Skip to content

Commit

Permalink
ci(mergify): upgrade configuration to current format
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] committed Jan 16, 2025
1 parent ee41518 commit ff97fcf
Showing 1 changed file with 51 additions and 8 deletions.
59 changes: 51 additions & 8 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,61 @@
---
defaults:
actions:
queue:
name: default
method: rebase
update_method: rebase

queue_rules:
- name: default
conditions:
- name: duplicated default from merge after two approvals (no API changes)
queue_conditions:
- base~=^(main)|(release-.+)$
- label!=DNM
- label!=api
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"
- "status-success=codespell"
- "status-success=build_bundle"
- "status-success=build_controller"
- "status-success=build_sidecar"
- "status-success=go_mod_verify"
- "status-success=go_mod_vendor"
- "status-success=kind_deploy"
- "status-success=make_test"
merge_conditions:
- "status-success=codespell"
- "status-success=build_bundle"
- "status-success=build_controller"
- "status-success=build_sidecar"
- "status-success=go_mod_verify"
- "status-success=go_mod_vendor"
- "status-success=kind_deploy"
merge_method: rebase
update_method: rebase
- name: duplicated default from API changes needs approval from a contributor and
a reviewer
queue_conditions:
- base~=^(main)|(release-.+)$
- label!=DNM
- label=api
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"
- "approved-reviews-by=@csi-addons/kubernetes-csi-addons-contributors"
- "approved-reviews-by=@csi-addons/kubernetes-csi-addons-reviewers"
- "status-success=codespell"
- "status-success=build_bundle"
- "status-success=build_controller"
- "status-success=build_sidecar"
- "status-success=go_mod_verify"
- "status-success=go_mod_vendor"
- "status-success=kind_deploy"
- "status-success=make_test"
merge_conditions:
- "status-success=codespell"
- "status-success=build_bundle"
- "status-success=build_controller"
- "status-success=build_sidecar"
- "status-success=go_mod_verify"
- "status-success=go_mod_vendor"
- "status-success=kind_deploy"
merge_method: rebase
update_method: rebase

pull_request_rules:
- name: remove outdated approvals
Expand All @@ -41,7 +81,6 @@ pull_request_rules:
- "status-success=kind_deploy"
- "status-success=make_test"
actions:
queue: {}
dismiss_reviews: {}
delete_head_branch: {}
- name: API changes needs approval from a contributor and a reviewer
Expand All @@ -62,7 +101,6 @@ pull_request_rules:
- "status-success=kind_deploy"
- "status-success=make_test"
actions:
queue: {}
dismiss_reviews: {}
delete_head_branch: {}
- name: pr title contains DNM
Expand Down Expand Up @@ -103,3 +141,8 @@ pull_request_rules:
request_reviews:
users_from_teams:
- "@csi-addons/kubernetes-csi-addons-contributors"
- name: API changes needs approval from a contributor and a reviewer + merge after
two approvals (no API changes)
conditions: []
actions:
queue:

0 comments on commit ff97fcf

Please sign in to comment.