-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathmergify.yml
104 lines (97 loc) · 2.52 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
pull_request_rules:
- name: Add needs-dco label when DCO check failed
conditions:
- or:
- base=master
- base=2.2
- base=2.4
- -status-success=DCO
actions:
label:
remove:
- dco-passed
add:
- needs-dco
- name: Add dco-passed label when DCO check passed
conditions:
- or:
- base=master
- base=2.2
- base=2.4
- status-success=DCO
actions:
label:
remove:
- needs-dco
add:
- dco-passed
- name: Blocking PR if missing a related issue or PR doesn't have kind/improvement label
conditions:
- or:
- base=master
- base=2.2
- base=2.4
- -body~=\#[0-9]{1,6}(\s+|$)
- -body~=https://github.com/milvus-io/milvus/issues/[0-9]{1,6}(\s+|$)
- -body~=https://github.com/milvus-io/milvus-proto/issues/[0-9]{1,6}(\s+|$)
- -label=kind/improvement
- -title~=\[automated\]
actions:
label:
add:
- do-not-merge/missing-related-issue
comment:
message: |
@{{author}} Please associate the related issue to the body of your Pull Request. (eg. “issue: #6534”)
- name: Dismiss block label if related issue be added into PR
conditions:
- or:
- and:
- or:
- base=master
- base=2.2
- base=2.4
- or:
- body~=\#[0-9]{1,6}(\s+|$)
- body~=https://github.com/milvus-io/milvus/issues/[0-9]{1,6}(\s+|$)
- body~=https://github.com/milvus-io/milvus-proto/issues/[0-9]{1,6}(\s+|$)
- and:
- base=master
- label=kind/improvement
actions:
label:
remove:
- do-not-merge/missing-related-issue
- name: Dismiss block label if automated create PR
conditions:
- or:
- base=master
- base=2.2
- base=2.4
- title~=\[automated\]
actions:
label:
remove:
- do-not-merge/missing-related-issue
- name: Test passed for code changed
conditions:
- or:
- base=master
- base=2.2
- base=2.4
- "status-success=Run Check Proto (3.8)"
actions:
label:
add:
- ci-passed
- name: Remove ci-passed label when test is not passed
conditions:
- or:
- base=master
- base=2.2
- base=2.4
- "status-success!=Run Check Proto (3.8)"
actions:
label:
remove:
- ci-passed