@@ -75,6 +75,17 @@ rules:
7575 actions :
7676 label :
7777 add : " PR: tests-needed"
78+ - filters :
79+ open : true
80+ status :
81+ context : " codecov/patch"
82+ ensure :
83+ value : " {{status.state}}"
84+ equals : " failure"
85+ age :
86+ value : " {{status.created_at}}"
87+ minimum : 1h
88+ actions :
7889 comment :
7990 identifier : " tests-result"
8091 message : |-
@@ -127,6 +138,11 @@ rules:
127138 review :
128139 state : APPROVED|CHANGES_REQUESTED
129140 commit : true
141+ not :
142+ label : " review-outdated"
143+ ensure :
144+ value : " {{commit.author.login}}"
145+ notEquals : " {{review.user.login}}"
130146 actions :
131147 label :
132148 add : " PR: review-outdated"
@@ -193,15 +209,6 @@ rules:
193209
194210
195211
196- # add hot label for many comments
197- - filters :
198- open : true
199- number_of_comments : 10
200- actions :
201- label : hot
202-
203-
204-
205212# add non-master label to pull request to other branch
206213- filters :
207214 pull_request :
@@ -213,6 +220,10 @@ rules:
213220
214221# add non-master label to pull request to other branch
215222- filters :
223+ open : true
224+ age :
225+ minimum : 1d
226+ maximum : 1w
216227 pull_request :
217228 head_ref : " ^master$"
218229 actions :
@@ -222,9 +233,7 @@ rules:
222233 message : |-
223234 Hi @{{pull_request.user.login}}.
224235
225- First thanks for your pull request.
226-
227- Just a little hint from a friendly bot about the best practice when submitting pull request:
236+ Just a little hint from a friendly bot about the best practice when submitting pull requests:
228237
229238 > Don't submit pull request from your own `master` branch. It's recommended to create a feature branch for the PR.
230239
@@ -234,6 +243,7 @@ rules:
234243
235244# add small label to small pull requests
236245- filters :
246+ open : true
237247 pull_request :
238248 additions : " <= 10"
239249 deletions : " <= 10"
0 commit comments