This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/main by this push:
new f27f46eed Update pre-commit workflow set `--show-diff-on-failure`
(#2487)
f27f46eed is described below
commit f27f46eed2126772f970f3793efa1d0d3688a41a
Author: John Bampton <[email protected]>
AuthorDate: Sun Feb 1 06:09:41 2026 +1000
Update pre-commit workflow set `--show-diff-on-failure` (#2487)
Without this flag, when a hook fails because it modified files, pre-commit
will simply indicate that files were modified and the hook failed,
without showing the specific changes. The developer would then have to
manually run git diff or inspect the files to see what happened
---
.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 8a3924e91..789c1c362 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -57,4 +57,4 @@ jobs:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{
hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
- run: pre-commit run --color=always --all-files
+ run: pre-commit run --color=always --all-files --show-diff-on-failure