From 1125a64d80ebaab8e02d064afad2f27a793e7725 Mon Sep 17 00:00:00 2001 From: Wang Xinyu Date: Tue, 19 Mar 2024 20:54:34 +0800 Subject: [PATCH] Update pre-commit.yml --- .github/workflows/pre-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 399301a4..1048fabb 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -13,4 +13,4 @@ jobs: - uses: actions/setup-python@v3 - uses: pre-commit/action@v3.0.1 with: - extra_args: --show-diff-on-failure + extra_args: --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}