forked from nektos/act
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
90 lines (90 loc) · 2.31 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
pull_request_rules:
- name: warn on conflicts
conditions:
- conflict
actions:
comment:
message: "@{{author}} this pull request is now in conflict 😩"
label:
add:
- conflict
- name: remove conflict label if not needed
conditions:
- -conflict
actions:
label:
remove:
- conflict
- name: warn on needs-work
conditions:
- "#check-failure>=1"
actions:
comment:
message: "@{{author}} this pull request has failed checks 🛠"
label:
add:
- needs-work
- name: remove needs-work label if not needed
conditions:
- check-success=lint
- check-success=test-linux
- check-success=test-macos
- check-success=codecov/patch
- check-success=codecov/project
- check-success=snapshot
actions:
label:
remove:
- needs-work
- name: Automatic maintainer assignment
conditions:
- "-approved-reviews-by=@nektos/act-maintainers"
- -draft
- -merged
- -closed
- -conflict
- check-success=lint
- check-success=test-linux
- check-success=test-macos
- check-success=codecov/patch
- check-success=codecov/project
- check-success=snapshot
actions:
request_reviews:
teams:
- "@nektos/act-maintainers"
- name: Automatic committer assignment
conditions:
- "approved-reviews-by=@nektos/act-maintainers"
- "-approved-reviews-by=@nektos/act-committers"
- -draft
- -merged
- -closed
- -conflict
- check-success=lint
- check-success=test-linux
- check-success=test-macos
- check-success=codecov/patch
- check-success=codecov/project
- check-success=snapshot
actions:
request_reviews:
teams:
- "@nektos/act-committers"
- name: Automatic merge on approval
conditions:
- "#changes-requested-reviews-by=0"
- "approved-reviews-by=@nektos/act-committers"
- -draft
- -merged
- -closed
- check-success=lint
- check-success=test-linux
- check-success=test-macos
- check-success=codecov/patch
- check-success=codecov/project
- check-success=snapshot
actions:
merge:
method: squash
strict: true