mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-17 16:00:35 +08:00
feat: add code format check in pre-push hook
This commit is contained in:
parent
972310ea4e
commit
f3ad6cee41
@ -8,4 +8,12 @@ if git diff --cached --name-only | grep -q '^src-tauri/'; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$(git rev-parse --show-toplevel)" == */clash-verge-rev/clash-verge-rev ]]; then
|
||||||
|
pnpm format:check
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Code format check failed. Please fix formatting before pushing."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user