From 46e7865bb0cc737643785bc9bbb93ec221d76b15 Mon Sep 17 00:00:00 2001 From: Mike Nikles Date: Sun, 1 Aug 2021 02:53:49 +0000 Subject: [PATCH] chore: skip commitizen in CI environments --- .husky/prepare-commit-msg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index c8e54d3a..f4fb4c49 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,4 +1,6 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -exec < /dev/tty && ./node_modules/.bin/cz --hook || true +if [ -z "${CI}" ]; then + exec < /dev/tty && ./node_modules/.bin/cz --hook || true +fi