-
Notifications
You must be signed in to change notification settings - Fork 520
/
Copy pathmergify.yml
108 lines (101 loc) · 2.59 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
pull_request_rules:
- name: Add needs-dco label when DCO check failed
conditions:
- or:
- base=main
- base=dev
- -status-success=DCO
actions:
label:
remove:
- dco-passed
add:
- needs-dco
- name: Add dco-passed label when DCO check passed
conditions:
- or:
- base=main
- base=dev
- 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:
# - base=main
# - and:
# - -body~=\#[0-9]{1,6}(\s+|$)
# - -body~=https://github.com/zilliztech/GPTCache/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: #<xyz>”)
# - name: Dismiss block label if related issue be added into PR
# conditions:
# - base=main
# - or:
# - or:
# - body~=\#[0-9]{1,6}(\s+|$)
# - body~=https://github.com/milvus-io/knowhere/issues/[0-9]{1,6}(\s+|$)
# - label=kind/improvement
# actions:
# label:
# remove:
# - do-not-merge/missing-related-issue
- name: Test passed for code changed
conditions:
- or:
- base=main
- base=dev
- "status-success=pylint"
- "status-success=build-pypi"
- "status-success=unit-test-main"
- "status-success=codecov/patch"
- "status-success=codecov/project"
actions:
label:
add:
- ci-passed
- name: Test passed for title skip ci
conditions:
- or:
- base=main
- base=dev
- title~=\[skip ci\]
- -files~=^(?=.*((\.(sh|py)|Makefile))).*$
actions:
label:
add:
- ci-passed
- name: Test passed for markdown file
conditions:
- or:
- base=main
- base=dev
- files=^.*\.md$
actions:
label:
add:
- ci-passed
- name: Remove ci-passed label when ut failed for main
conditions:
- or:
- base=main
- base=dev
- or:
- "status-success!=pylint"
- "status-success!=build-pypi"
- "status-success!=unit-test-main"
- files~=^(?=.*((\.(sh|py)|Makefile))).*$
actions:
label:
remove:
- ci-passed