Skip to content

Commit 7451e65

Browse files
russellbLeiWang1999
authored andcommitted
[CI/Build] Adopt Mergify for auto-labeling PRs (vllm-project#9259)
Signed-off-by: Russell Bryant <[email protected]> Signed-off-by: LeiWang1999 <[email protected]>
1 parent a476a3b commit 7451e65

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/mergify.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
pull_request_rules:
2+
- name: label-documentation
3+
description: Automatically apply documentation label
4+
conditions:
5+
- or:
6+
- files~=^[^/]+\.md$
7+
- files~=^docs/
8+
actions:
9+
label:
10+
add:
11+
- documentation
12+
13+
- name: label-ci-build
14+
description: Automatically apply ci/build label
15+
conditions:
16+
- files~=^\.github/
17+
- files~=\.buildkite/
18+
- files~=^cmake/
19+
- files=CMakeLists.txt
20+
- files~=^Dockerfile
21+
- files~=^requirements.*\.txt
22+
- files=setup.py
23+
actions:
24+
label:
25+
add:
26+
- ci/build
27+
28+
- name: label-frontend
29+
description: Automatically apply frontend label
30+
conditions:
31+
- files~=^vllm/entrypoints/
32+
actions:
33+
label:
34+
add:
35+
- frontend
36+
37+
- name: ping author on conflicts and add 'needs-rebase' label
38+
conditions:
39+
- conflict
40+
- -closed
41+
actions:
42+
label:
43+
add:
44+
- needs-rebase
45+
comment:
46+
message: |
47+
This pull request has merge conflicts that must be resolved before it can be
48+
merged. @{{author}} please rebase it. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork
49+
50+
- name: remove 'needs-rebase' label when conflict is resolved
51+
conditions:
52+
- -conflict
53+
- -closed
54+
actions:
55+
label:
56+
remove:
57+
- needs-rebase

0 commit comments

Comments
 (0)