Skip to content

Commit cc6ae9d

Browse files
authored
Fix mergify infinite loop. (#7463)
* Fix mergify infinite loop. * Update rule for `ready-for-review` label. * More fix to prevent infinite loop
1 parent b1138c2 commit cc6ae9d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/mergify.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
pull_request_rules:
22
- name: Ask to resolve conflict
33
conditions:
4+
- -closed
45
- conflict
56
- -author=dependabot[bot]
67
- or:
@@ -20,6 +21,7 @@ pull_request_rules:
2021

2122
- name: Ask to resolve CI failures
2223
conditions:
24+
- -closed
2325
- or:
2426
- check-failure=test-suite-success
2527
- check-skipped=test-suite-success
@@ -36,10 +38,15 @@ pull_request_rules:
3638

3739
- name: Update labels when PR is unblocked
3840
conditions:
41+
- -closed
42+
- -draft
3943
- label=waiting-on-author
4044
- -conflict
45+
# Need to be the logical opposite of the above rule `Ask to resolve CI failures`, otherwise mergify will run into an infinite loop.
4146
- check-failure!=test-suite-success
47+
- check-skipped!=test-suite-success
4248
- check-failure!=local-testnet-success
49+
- check-skipped!=local-testnet-success
4350
- "#review-requested > 0"
4451
actions:
4552
label:
@@ -54,6 +61,7 @@ pull_request_rules:
5461
5562
- name: Close stale pull request after 30 days of inactivity
5663
conditions:
64+
- -closed
5765
- label=waiting-on-author
5866
- updated-at<=30 days ago
5967
actions:

0 commit comments

Comments
 (0)