-
Notifications
You must be signed in to change notification settings - Fork 2
/
.mergify.yml
120 lines (119 loc) · 3.28 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
---
pull_request_rules:
- name: 'Ensure all pull requests use the "develop" base branch'
conditions:
- 'base!=develop'
actions:
comment:
message: |
Hi,
You've select an invalid base branch, we only authorize "develop".
Please fix it, thanks.
label:
add:
- 'invalid'
remove:
- 'ready to merge'
- name: 'Assign all pull requests to achaussier'
conditions:
- '#assignee=0'
actions:
assign:
users:
- 'achaussier'
- name: 'Remove label "ready to merge" in case of CI errors'
conditions:
- 'status-failure~=.*'
actions:
label:
remove:
- 'ready to merge'
- name: 'Remove label "ready to merge" if pull request is closed'
conditions:
- 'closed'
actions:
label:
remove:
- 'invalid'
- 'ready to merge'
- name: 'Remove label "ready to merge" if pull request is a draft'
conditions:
- 'draft'
actions:
label:
remove:
- 'ready to merge'
- name: 'Remove label "conflict" if no conflict'
conditions:
- '-conflict'
actions:
label:
remove:
- 'conflict'
- name: 'Add label "conflict" if a conflict is detected'
conditions:
- 'conflict'
actions:
label:
add:
- 'conflict'
remove:
- 'ready to merge'
- name: 'Remove label "ready to merge" once pull request is merged'
conditions:
- 'merged'
actions:
label:
remove:
- 'ready to merge'
- name: 'Add label "ready to merge" if CI is OK'
conditions:
- 'base=develop'
- '-draft'
- 'status-success=pyup.io/safety-ci'
- 'status-success=tests (3.6, 2.8)'
- 'status-success=tests (3.6, 2.9)'
- 'status-success=tests (3.7, 2.8)'
- 'status-success=tests (3.7, 2.9)'
- 'status-success=tests (3.8, 2.8)'
- 'status-success=tests (3.8, 2.9)'
- '-status-failure=pyup.io/safety-ci'
- '-status-failure=tests (3.6, 2.8)'
- '-status-failure=tests (3.6, 2.9)'
- '-status-failure=tests (3.7, 2.8)'
- '-status-failure=tests (3.7, 2.9)'
- '-status-failure=tests (3.8, 2.8)'
- '-status-failure=tests (3.8, 2.9)'
actions:
label:
add:
- 'ready to merge'
- name: 'Add label "dependencies" on PyUP pull requests'
conditions:
- 'author=pyup-bot'
actions:
label:
add:
- 'dependencies'
- name: 'Automatic merge PyUP updates on CI success'
conditions:
- 'author=pyup-bot'
- 'base=develop'
- 'status-success=pyup.io/safety-ci'
- 'status-success=tests (3.6, 2.8)'
- 'status-success=tests (3.6, 2.9)'
- 'status-success=tests (3.7, 2.8)'
- 'status-success=tests (3.7, 2.9)'
- 'status-success=tests (3.8, 2.8)'
- 'status-success=tests (3.8, 2.9)'
- '-status-failure=pyup.io/safety-ci'
- '-status-failure=tests (3.6, 2.8)'
- '-status-failure=tests (3.6, 2.9)'
- '-status-failure=tests (3.7, 2.8)'
- '-status-failure=tests (3.7, 2.9)'
- '-status-failure=tests (3.8, 2.8)'
- '-status-failure=tests (3.8, 2.9)'
actions:
delete_head_branch: {}
merge:
method: 'merge'