From c6896e127b14b96bd27b123888e0bfad68e51d77 Mon Sep 17 00:00:00 2001 From: Christian Zosel Date: Thu, 6 Jan 2022 10:29:02 +0100 Subject: [PATCH] fix(husky): disable commitlint in CI --- .husky/commit-msg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 60cd73da..6811cd98 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,5 +1,8 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" +# skip in CI +[ -n "$CI" ] && exit 0 + # lint commit message -yarn commitlint --edit $1 \ No newline at end of file +yarn commitlint --edit $1