1
1
pull_request_rules :
2
2
- name : Ask to resolve conflict
3
3
conditions :
4
+ - -closed
4
5
- conflict
5
6
- -author=dependabot[bot]
7
+ - label=ready-for-review
6
8
- or :
7
9
- -draft # Don't report conflicts on regular draft.
8
10
- and : # Do report conflicts on draft that are scheduled for the next major release.
@@ -12,6 +14,64 @@ pull_request_rules:
12
14
comment :
13
15
message : This pull request has merge conflicts. Could you please resolve them
14
16
@{{author}}? 🙏
17
+ label :
18
+ add :
19
+ - waiting-on-author
20
+ remove :
21
+ - ready-for-review
22
+
23
+ - name : Ask to resolve CI failures
24
+ conditions :
25
+ - -closed
26
+ - label=ready-for-review
27
+ - or :
28
+ - check-skipped=test-suite-success
29
+ - check-skipped=local-testnet-success
30
+ - check-failure=test-suite-success
31
+ - check-failure=local-testnet-success
32
+ actions :
33
+ comment :
34
+ message : Some required checks have failed. Could you please take a look @{{author}}? 🙏
35
+ label :
36
+ add :
37
+ - waiting-on-author
38
+ remove :
39
+ - ready-for-review
40
+
41
+ - name : Update labels when PR is unblocked
42
+ conditions :
43
+ - -closed
44
+ - -draft
45
+ - label=waiting-on-author
46
+ - -conflict
47
+ # Unfortunately, it doesn't look like there's an easy way to check for PRs pending
48
+ # CI workflows approvals.
49
+ - check-success=test-suite-success
50
+ - check-success=local-testnet-success
51
+ # Update the label only if there are no more change requests from any reviewers and no unresolved threads.
52
+ # This rule ensures that a PR with passing CI can be marked as `waiting-on-author`.
53
+ - " #changes-requested-reviews-by = 0"
54
+ - " #review-threads-unresolved = 0"
55
+ actions :
56
+ label :
57
+ remove :
58
+ - waiting-on-author
59
+ add :
60
+ - ready-for-review
61
+
62
+ - name : Close stale pull request after 30 days of inactivity
63
+ conditions :
64
+ - -closed
65
+ - label=waiting-on-author
66
+ - updated-at<=30 days ago
67
+ actions :
68
+ close :
69
+ message : >
70
+ Hi @{{author}}, this pull request has been closed automatically due to 30 days of inactivity.
71
+ If you’d like to continue working on it, feel free to reopen at any time.
72
+ label :
73
+ add :
74
+ - stale
15
75
16
76
- name : Approve trivial maintainer PRs
17
77
conditions :
0 commit comments