forked from webpack/webpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopen-bot.yaml
More file actions
37 lines (35 loc) · 923 Bytes
/
open-bot.yaml
File metadata and controls
37 lines (35 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
bot: "webpack-bot"
rules:
- filters:
open: true
status:
context: "continuous-integration/travis-ci/pr"
ensure:
value: "{{status.state}}"
equals: "success"
actions:
label:
add: "PR: CI-ok"
remove: "PR: CI-not-ok"
comment:
identifier: "ci-result"
readd: true
message: |-
The most important CI builds succeeded. Great work so far.
- filters:
open: true
status:
context: "continuous-integration/travis-ci/pr"
ensure:
value: "{{status.state}}"
equals: "failure"
actions:
label:
add: "PR: CI-not-ok"
remove: "PR: CI-ok"
comment:
identifier: "ci-result"
readd: true
message: |-
@{{issue.user.login}} The most important CI builds failed. This way your PR can't be merged.
Please take a look at the [CI results]({{status.target_url}}) and fix these issues.