This repository has been archived by the owner on Sep 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
79 lines (77 loc) · 2.16 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
pull_request_rules:
#######################
# MERGE PRECONDITIONS
#######################
- name: comment notice when pull does not contain version info
conditions:
- -label~=(Breaking|Bug|Documentation|Enhancement|Internal)
actions:
comment:
message: You must set a version label (breaking, bug, documentation, enhancement, internal) before we can merge this.
- 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: remove "ready to merge" label when pull is not approved
conditions:
- "#approved-reviews-by=0"
- label~=ready to merge
- -merged
actions:
comment:
message: The "ready to merge" label can only be set after one pull request approval
label:
remove:
- ready to merge
- name: let @hpi-schul-cloud-bot recreate dependabot PRs with conflicts
conditions:
- author~=dependabot(-preview)?\[bot\]
- label~=dependencies
- conflict
actions:
comment:
message: "@hpi-schul-cloud-bot tell dependabot to recreate PR"
#######################
# AUTO MERGING
#######################
- name: auto merge passing Dependabot pull requests
conditions:
- author~=dependabot(-preview)?\[bot\]
- label~=dependencies
- label~=(Internal)
actions:
merge:
method: squash
strict: smart
- name: automatic merging when label is set
conditions:
- label!=WIP
- label!=waiting
- label=ready to merge
- label~=(Breaking|Bug|Documentation|Enhancement|Internal)
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: {}