Chore: do not run husky hooks on backend-only changes (#48439)

pull/48540/head
Serge Zaitsev 3 years ago committed by GitHub
parent 5283a8b13d
commit e9a2a06651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .husky/pre-commit

@ -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…
Cancel
Save