Skip to content

Commit

Permalink
Modify husky commit-msg hook to always run message generator
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 4, 2024
1 parent 28650f3 commit 33438c4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# don't run message generator if user-provided message
if [ -s "$1" ]; then
node packages/cli/built/genaiscript.cjs run commit-msg "$1"
fi
node packages/cli/built/genaiscript.cjs run commit-msg "$1"

0 comments on commit 33438c4

Please sign in to comment.