Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
vermouth1992 committed Jan 31, 2026
commit 073dbf933780afe91ee9c1d5d6000cc0d4ff7d9f
42 changes: 22 additions & 20 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
pull_request_rules:
- 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:
- name: comment-pre-commit-failure
description: Comment on PR when pre-commit check fails
conditions:
- "check-failure=pre-commit"
actions:
comment:
message: |
Hi @{{author}}, the pre-commit checks have failed. Please run:

```bash
pip install pre-commit
pre-commit install
# for staged changes
pre-commit run
# for all files in the repo
pre-commit run --all-files
```
```bash
pip install pre-commit
pre-commit install
# for staged changes
pre-commit run
# for all files in the repo
pre-commit run --all-files
```

Then, commit the changes and push to your branch.
Then, commit the changes and push to your branch.

For future commits, `pre-commit` will run automatically on changed files before each commit.
For future commits, `pre-commit` will run automatically on changed files before each commit.

label:
add:
- pre-commit-failed
Loading