diff --git a/.lefthook/commitlint.sh b/.lefthook/commitlint.sh new file mode 100755 index 00000000..dc60f5ed --- /dev/null +++ b/.lefthook/commitlint.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +if [[ -z "$CI" ]]; then + npx commitlint --edit $GIT_PARAMS +fi diff --git a/lefthook.yml b/lefthook.yml index 64d12a9d..dc4ceea7 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -5,6 +5,6 @@ pre-push: run: npm test commit-msg: - commands: - commitlint: - run: npx commitlint --edit $GIT_PARAMS + scripts: + "commitlint.sh": + runner: bash