Skip to content

Commit b1138c2

Browse files
authored
Add additional mergify rules to automate triaging (#7451)
* Add additional mergify rules to automate triaging. * Update mergify config.
1 parent e42406d commit b1138c2

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.github/mergify.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,58 @@ pull_request_rules:
1212
comment:
1313
message: This pull request has merge conflicts. Could you please resolve them
1414
@{{author}}? 🙏
15+
label:
16+
add:
17+
- waiting-on-author
18+
remove:
19+
- ready-for-review
20+
21+
- name: Ask to resolve CI failures
22+
conditions:
23+
- or:
24+
- check-failure=test-suite-success
25+
- check-skipped=test-suite-success
26+
- check-failure=local-testnet-success
27+
- check-skipped=local-testnet-success
28+
actions:
29+
comment:
30+
message: Some required checks have failed. Could you please take a look @{{author}}? 🙏
31+
label:
32+
add:
33+
- waiting-on-author
34+
remove:
35+
- ready-for-review
36+
37+
- name: Update labels when PR is unblocked
38+
conditions:
39+
- label=waiting-on-author
40+
- -conflict
41+
- check-failure!=test-suite-success
42+
- check-failure!=local-testnet-success
43+
- "#review-requested > 0"
44+
actions:
45+
label:
46+
remove:
47+
- waiting-on-author
48+
add:
49+
- ready-for-review
50+
comment:
51+
message: >
52+
All required checks have passed and there are no merge conflicts.
53+
This pull request may now be ready for another review.
54+
55+
- name: Close stale pull request after 30 days of inactivity
56+
conditions:
57+
- label=waiting-on-author
58+
- updated-at<=30 days ago
59+
actions:
60+
close:
61+
message: >
62+
Hi @{{author}}, this pull request has been closed automatically due to 30 days of inactivity.
63+
If you’d like to continue working on it, feel free to reopen at any time.
64+
label:
65+
add:
66+
- stale
1567

1668
- name: Approve trivial maintainer PRs
1769
conditions:

0 commit comments

Comments
 (0)