Skip to content

Commit e9a2a06

Browse files
authored
Chore: do not run husky hooks on backend-only changes (grafana#48439)
1 parent 5283a8b commit e9a2a06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
2+
3+
# Ignore husky hooks if no frontend code has been changed
4+
git diff --cached --name-only | grep -v --quiet "^pkg/" || exit 0
5+
26
. "$(dirname "$0")/_/husky.sh"
37

48
yarn run precommit

0 commit comments

Comments
 (0)