diff --git a/.husky/commit-msg b/.husky/commit-msg index 2785bc1d..0c159680 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1 +1,8 @@ -yarn commitlint --edit $1 +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +# skip in CI +[ -n "$CI" ] && exit 0 + +# lint commit message +yarn commitlint --edit "$1"