mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-16 16:05:42 +08:00
[CI] Have pre-commit comment on a PR if pre-commit was not used (#30077)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
parent
c2894d3883
commit
b7d85cf25c
32
.github/mergify.yml
vendored
32
.github/mergify.yml
vendored
@ -14,6 +14,38 @@ pull_request_rules:
|
|||||||
comment:
|
comment:
|
||||||
message: "Documentation preview: https://vllm--{{number}}.org.readthedocs.build/en/{{number}}/"
|
message: "Documentation preview: https://vllm--{{number}}.org.readthedocs.build/en/{{number}}/"
|
||||||
|
|
||||||
|
- name: comment-pre-commit-failure
|
||||||
|
description: Comment on PR when pre-commit check fails
|
||||||
|
conditions:
|
||||||
|
- status-failure=pre-commit
|
||||||
|
- -closed
|
||||||
|
- -draft
|
||||||
|
actions:
|
||||||
|
comment:
|
||||||
|
message: |
|
||||||
|
Hi @{{author}}, the pre-commit checks have failed. Please run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uv pip install pre-commit
|
||||||
|
pre-commit install
|
||||||
|
pre-commit run --all-files
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, commit the changes and push to your branch.
|
||||||
|
|
||||||
|
For future commits, `pre-commit` will run automatically on changed files before each commit.
|
||||||
|
|
||||||
|
- name: comment-dco-failure
|
||||||
|
description: Comment on PR when DCO check fails
|
||||||
|
conditions:
|
||||||
|
- status-failure=dco
|
||||||
|
- -closed
|
||||||
|
- -draft
|
||||||
|
actions:
|
||||||
|
comment:
|
||||||
|
message: |
|
||||||
|
Hi @{{author}}, the DCO check has failed. Please click on DCO in the Checks section for instructions on how to resolve this.
|
||||||
|
|
||||||
- name: label-ci-build
|
- name: label-ci-build
|
||||||
description: Automatically apply ci/build label
|
description: Automatically apply ci/build label
|
||||||
conditions:
|
conditions:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user