1 parent 97d38cb commit 6c79ac6Copy full SHA for 6c79ac6
1 file changed
.github/workflows/pre-commit.yml
@@ -32,6 +32,7 @@ jobs:
32
- name: Run pre-commit
33
run: |
34
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
35
+ git fetch --no-tags origin "${{ github.event.pull_request.base.sha }}" "${{ github.event.pull_request.head.sha }}"
36
pre-commit run --from-ref "${{ github.event.pull_request.base.sha }}" --to-ref "${{ github.event.pull_request.head.sha }}" --show-diff-on-failure
37
else
38
pre-commit run --all-files --show-diff-on-failure
0 commit comments