Skip to content

Commit 8b21862

Browse files
authored
Enable bot to label PRs and ping users on failure
1 parent 2e87cab commit 8b21862

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

‎open-bot.yaml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
bot: "webpack-bot"
2+
rules:
3+
- filters:
4+
open: true
5+
status:
6+
context: "continuous-integration/travis-ci/pr"
7+
state: "success"
8+
actions:
9+
label:
10+
add: "PR: CI-ok"
11+
remove: "PR: CI-not-ok"
12+
comment:
13+
identifier: "ci-result"
14+
readd: true
15+
message: |-
16+
The most important CI builds succeeded. Great work so far.
17+
- filters:
18+
open: true
19+
status:
20+
context: "continuous-integration/travis-ci/pr"
21+
state: "failure"
22+
actions:
23+
label:
24+
add: "PR: CI-not-ok"
25+
remove: "PR: CI-ok"
26+
comment:
27+
identifier: "ci-result"
28+
readd: true
29+
message: |-
30+
@{{issue.user.login}} The most important CI builds failed. This way your PR can't be merged.
31+
32+
Please take a look at the [CI results]({{status.target_url}}) and fix these issues.

0 commit comments

Comments
 (0)