mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: do not run husky hooks on backend-only changes (#48439)
This commit is contained in:
parent
5283a8b13d
commit
e9a2a06651
@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Ignore husky hooks if no frontend code has been changed
|
||||
git diff --cached --name-only | grep -v --quiet "^pkg/" || exit 0
|
||||
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn run precommit
|
||||
|
Loading…
Reference in New Issue
Block a user