Skip to content

Commit

Permalink
fix: commitlint breaking CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell committed Nov 7, 2024
1 parent 990683d commit 9bd0af4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .lefthook/commitlint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

if [[ -z "$CI" ]]; then
npx commitlint --edit $GIT_PARAMS
fi
6 changes: 3 additions & 3 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ pre-push:
run: npm test

commit-msg:
commands:
commitlint:
run: npx commitlint --edit $GIT_PARAMS
scripts:
"commitlint.sh":
runner: bash

0 comments on commit 9bd0af4

Please sign in to comment.