diff options
| -rw-r--r-- | .husky/commit-msg | 13 | ||||
| -rw-r--r-- | .husky/pre-commit | 12 |
2 files changed, 13 insertions, 12 deletions
diff --git a/.husky/commit-msg b/.husky/commit-msg index 36158d9..1fe054a 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1 +1,12 @@ -npx --no-install commitlint --edit "$1"
\ No newline at end of file +npx --no-install commitlint --edit "$1" + +case "$1" in + *"[skip ci]"*) + echo "Found [skip ci]" + exit 0 + ;; + *) + echo "No [skip ci] found" + npm test + ;; +esac
\ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 7487b87..d0a7784 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,11 +1 @@ -case "$1" in - *"[skip ci]"*) - echo "Found [skip ci]" - exit 0 - ;; - *) - echo "No [skip ci] found" - npx lint-staged - npm test - ;; -esac
\ No newline at end of file +npx lint-staged
\ No newline at end of file |
