This repository was archived by the owner on Jan 23, 2022. It is now read-only.
forked from annearbor/nuxt-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mergify.yml
130 lines (128 loc) · 3.19 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
pull_request_rules:
#######################
# MERGE PRECONDITIONS
#######################
- name: add WIP label to draft PRs
conditions:
- draft
actions:
label:
add:
- WIP
- name: add WIP label when WIP is in title
conditions:
- title~=WIP
actions:
comment:
message: Please remove WIP from the title. We have set the WIP Label for you instead.
label:
add:
- WIP
- name: label PRs waiting for review
conditions:
- status-neutral~=pullapprove
actions:
label:
add:
- waiting for review
- name: label PRs with requested changes
conditions:
- status-failure~=pullapprove
actions:
label:
add:
- changes requested
- name: remove "changes requested" label when pull is approved
conditions:
- status-success~=pullapprove
- label~=changes requested
actions:
label:
remove:
- changes requested
- name: label PRs waiting for another review
conditions:
- status-failure~=pullapprove
- -label~=changes requested
actions:
label:
add:
- waiting for review
- name: remove "ready to merge" label when pull is not approved yet
conditions:
- -status-success~=pullapprove
- label~=ready to merge
actions:
comment:
message: The "ready to merge" label can only be set on approved pull request
label:
remove:
- ready to merge
- name: label PRs with conflicts
conditions:
- conflict
actions:
label:
add:
- has conflicts
- name: remove has conflicts label if conflicts got resolved
conditions:
- label~=has conflicts
- -conflict
actions:
label:
remove:
- has conflicts
- name: let @schul-cloud-bot recreate dependabot PRs with conflicts
conditions:
- author~=dependabot(-preview)?\[bot\]
- label~=dependencies
- conflict
actions:
comment:
message: "@schul-cloud-bot tell dependabot to recreate PR"
#######################
# AUTO MERGING
#######################
- name: auto merge language file updates
conditions:
- author=schul-cloud-bot
# PR must only contain language file changes
- -files~=^(?!locale\/.*\.json)
actions:
merge:
method: squash
strict: smart
- name: auto merge passing Dependabot pull requests
conditions:
# match dependabot[bot] and dependabot-preview[bot]
- author~=dependabot(-preview)?\[bot\]
- label~=dependencies
actions:
merge:
method: squash
strict: smart
- name: auto merge when ready to merge label is set
conditions:
- label=ready to merge
actions:
merge:
method: merge
strict: smart
#######################
# CLEANUP AFTER MERGE
#######################
- name: remove ready to merge when merged
conditions:
- merged
- label=ready to merge
actions:
label:
remove:
- ready to merge
- name: delete merged branches
conditions:
- merged
- label!=WIP
actions:
delete_head_branch: {}