forked from twilio-labs/open-pixel-art
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
38 lines (38 loc) · 1.42 KB
/
.mergify.yml
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
37
38
pull_request_rules:
- name: inform people about merge conflict
conditions:
- conflict
actions:
comment:
message: 'Unfortunately it seems like some other contributions have been merged since you contributed. Please resolve those merge conflicts. For more info check out this page: https://help.github.com/en/articles/resolving-a-merge-conflict-using-the-command-line'
- name: automatic merge on CI success for pixel contributions
conditions:
- -conflict
- 'status-success=build'
- files=_data/pixels.json
- '#files=1'
actions:
merge:
method: squash
strict: true
label:
add:
- 'pixel-contribution'
- name: create comment for failed CI
conditions:
- 'status-failure=build'
actions:
comment:
message: 'Unfortunately the automatic code review has failed. Please click the details button for more information. If the details reveal a fail in Danger please note that there is currently a known issue (\#2046) and @dkundel will merge your PR manually in the coming days. Sorry for the inconvenience.'
label:
add:
- 'needs-help'
- name: add label for review for more than one file change
conditions:
- '#files>=2'
actions:
comment:
message: 'This PR touches more than one file and has to be reviewed manually. @dkundel'
label:
add:
- 'needs-review'