forked from twilio-labs/open-pixel-art
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
40 lines (40 loc) · 1.3 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
39
40
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:
- 'hacktoberfest'
- '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. @dkundel'
label:
add:
- 'hacktoberfest'
- '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'