diff --git a/.husky/commit-msg b/.husky/commit-msg index 0a4b97de..0c6f0794 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1 +1,5 @@ -npx --no -- commitlint --edit $1 +branch="$(git rev-parse --abbrev-ref HEAD)" +if [ "$branch" = "master" ]; then + npx --no -- commitlint --edit $1 +fi +