@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / b7d85cf25c
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 11, 23:45 UTC

[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>

Harry Mellor committed Dec 5, 2025 at 13:03 UTC b7d85cf25c0a6699eb493e595ec44923ffce21b1
1 file changed +32
.github/mergify.yml
+32
@@ -14,6 +14,38 @@ pull_request_rules:
14 comment:
15 message: "Documentation preview: https://vllm--{{number}}.org.readthedocs.build/en/{{number}}/"
16
17 +- name: comment-pre-commit-failure
18 + description: Comment on PR when pre-commit check fails
19 + conditions:
20 + - status-failure=pre-commit
21 + - -closed
22 + - -draft
23 + actions:
24 + comment:
25 + message: |
26 + Hi @{{author}}, the pre-commit checks have failed. Please run:
27 +
28 + ```bash
29 + uv pip install pre-commit
30 + pre-commit install
31 + pre-commit run --all-files
32 + ```
33 +
34 + Then, commit the changes and push to your branch.
35 +
36 + For future commits, `pre-commit` will run automatically on changed files before each commit.
37 +
38 +- name: comment-dco-failure
39 + description: Comment on PR when DCO check fails
40 + conditions:
41 + - status-failure=dco
42 + - -closed
43 + - -draft
44 + actions:
45 + comment:
46 + message: |
47 + Hi @{{author}}, the DCO check has failed. Please click on DCO in the Checks section for instructions on how to resolve this.
48 +
49 - name: label-ci-build
50 description: Automatically apply ci/build label
51 conditions: