You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: open-bot.yaml
+50-69Lines changed: 50 additions & 69 deletions
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,17 @@ rules:
6
6
# comment in case of success
7
7
- filters:
8
8
open: true
9
-
status:
9
+
pull_request:
10
+
mergeable: true
11
+
status_1:
10
12
context: "continuous-integration/travis-ci/pr"
11
-
ensure:
12
-
value: "{{status.state}}"
13
+
status_2:
14
+
context: "continuous-integration/appveyor/pr"
15
+
ensure_1:
16
+
value: "{{status_1.state}}"
17
+
equals: "success"
18
+
ensure_2:
19
+
value: "{{status_2.state}}"
13
20
equals: "success"
14
21
actions:
15
22
label:
@@ -21,11 +28,19 @@ rules:
21
28
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.
22
29
- filters:
23
30
open: true
24
-
status:
31
+
pull_request:
32
+
mergeable: true
33
+
status_1:
25
34
context: "continuous-integration/travis-ci/pr"
26
-
ensure:
27
-
value: "{{status.state}}"
28
-
equals: "failure"
35
+
status_2:
36
+
context: "continuous-integration/appveyor/pr"
37
+
any:
38
+
ensure_1:
39
+
value: "{{status_1.state}}"
40
+
equals: "failure"
41
+
ensure_2:
42
+
value: "{{status_2.state}}"
43
+
equals: "failure"
29
44
actions:
30
45
label:
31
46
add: "PR: CI-not-ok"
@@ -35,7 +50,7 @@ rules:
35
50
message: |-
36
51
@{{issue.user.login}} The most important CI builds failed. This way your PR can't be merged.
37
52
38
-
Please take a look at the [CI results]({{status.target_url}}) and fix these issues.
53
+
Please take a look at the CI results from [travis]({{status_1.target_url}}) ({{status_1.state}}) and [appveyor]({{status_2.target_url}}) ({{status_2.state}}) and fix these issues.
39
54
40
55
41
56
@@ -44,29 +59,25 @@ rules:
44
59
# comment in case of success
45
60
- filters:
46
61
open: true
62
+
pull_request:
63
+
mergeable: true
47
64
status:
48
65
context: "codecov/patch"
49
66
ensure:
50
67
value: "{{status.state}}"
51
68
equals: "success"
69
+
label: "PR: tests-needed"
52
70
actions:
53
71
label:
54
72
remove: "PR: tests-needed"
55
-
- filters:
56
-
open: true
57
-
status:
58
-
context: "codecov/patch"
59
-
ensure:
60
-
value: "{{status.state}}"
61
-
equals: "success"
62
-
label: "PR: tests-needed"
63
-
actions:
64
73
comment:
65
74
identifier: "tests-result"
66
75
message: |-
67
76
The minimum test ratio has been reached. Thanks!
68
77
- filters:
69
78
open: true
79
+
pull_request:
80
+
mergeable: true
70
81
status:
71
82
context: "codecov/patch"
72
83
ensure:
@@ -77,6 +88,8 @@ rules:
77
88
add: "PR: tests-needed"
78
89
- filters:
79
90
open: true
91
+
pull_request:
92
+
mergeable: true
80
93
status:
81
94
context: "codecov/patch"
82
95
ensure:
@@ -89,22 +102,29 @@ rules:
89
102
comment:
90
103
identifier: "tests-result"
91
104
message: |-
92
-
It looks like this Pull Request doesn't include [enough test cases]({{status.target_url}}).
105
+
It looks like this Pull Request doesn't include [enough test cases]({{status.target_url}}) (based on Code Coverage analysis of the PR diff).
106
+
107
+
A PR need to be covered by tests if you add a new feature (we want to make sure that your feature is working) or if you fix a bug (we want to make sure that we don't run into a regression in future).
93
108
94
-
@{{issue.user.login}} Please add more test cases.
109
+
@{{issue.user.login}} Please check if this is appliable to your PR and if you can add more test cases.
95
110
96
-
See [test readme](https://github.com/webpack/webpack/blob/master/test/README.md) for details how to write test cases.
111
+
Read the [test readme](https://github.com/webpack/webpack/blob/master/test/README.md) for details how to write test cases.
97
112
98
113
99
114
100
115
# add conflict label to pull requests with conflict
116
+
# on conflict all result labels are removed
101
117
- filters:
102
118
open: true
103
119
pull_request:
104
120
mergeable: false
105
121
actions:
106
122
label:
107
123
add: "PR: conflict"
124
+
remove:
125
+
- "PR: tests-needed"
126
+
- "PR: CI-ok"
127
+
- "PR: CI-not-ok"
108
128
- filters:
109
129
open: true
110
130
pull_request:
@@ -185,54 +205,27 @@ rules:
185
205
state: APPROVED|CHANGES_REQUESTED
186
206
actions:
187
207
label: "PR: unreviewed"
188
-
- filters:
189
-
open: true
190
-
commit: true
191
-
not:
192
-
review:
193
-
state: APPROVED|CHANGES_REQUESTED
194
-
age:
195
-
maximum: 1w
196
-
actions:
197
-
comment:
198
-
identifier: "pr-thanks"
199
-
message: |-
200
-
Thanks for your Pull Request. I labeled the Pull Request, so maintainers will review it.
201
208
202
209
203
210
204
-
# add/remove mentioned-sokra label
205
-
- filters:
206
-
open: true
207
-
any:
208
-
in_order:
209
-
comment_1:
210
-
author: "^sokra$"
211
-
comment_2: "@sokra"
212
-
all:
213
-
not:
214
-
comment_1:
215
-
author: "^sokra$"
216
-
comment_2: "@sokra"
217
-
actions:
218
-
label: "mentioned-sokra"
211
+
# add non-master label to pull request to other branch
219
212
- filters:
220
-
in_order:
221
-
comment_1: "@sokra"
222
-
comment_2:
223
-
author: "^sokra$"
213
+
pull_request:
214
+
base_ref: "^(?!master)"
224
215
actions:
225
-
label:
226
-
remove: "mentioned-sokra"
216
+
label: "PR: non-master"
227
217
228
218
229
219
230
-
# add non-master label to pull request to other branch
220
+
# add small label to small pull requests
231
221
- filters:
222
+
open: true
232
223
pull_request:
233
-
base_ref: "^(?!master)"
224
+
additions: "<= 10"
225
+
deletions: "<= 10"
226
+
changed_files: "<= 2"
234
227
actions:
235
-
label: "PR: non-master"
228
+
label: "PR: small"
236
229
237
230
238
231
@@ -256,15 +249,3 @@ rules:
256
249
> Don't submit pull request from your own `master` branch. It's recommended to create a feature branch for the PR.
257
250
258
251
*You don't have to change it for this PR, just make sure to follow this hint the next time you submit a PR.*
0 commit comments