[ci] Add /test pre-commit slash command

- /test pre-commit triggers pre-commit via workflow_call
- Posts commit status to PR head SHA so check appears on PR page
- Mergify check-success~=pre-commit condition can now be satisfied
This commit is contained in:
Jinzhe Pan
2026-03-31 08:18:06 -04:00
parent 81fd80c8ee
commit 3a7925c674
2 changed files with 37 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ permissions:
jobs:
pre-commit:
if: github.event.pull_request.draft != true
if: github.event_name == 'workflow_call' || github.event.pull_request.draft != true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4