Skip to content

Commit

Permalink
Update commit-msg hook to run only if commit message is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 4, 2024
1 parent 1622457 commit 7610975
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node packages/cli/built/genaiscript.cjs run commit-msg $1
if [ -s "$1" ]; then
node packages/cli/built/genaiscript.cjs run commit-msg "$1"
fi

0 comments on commit 7610975

Please sign in to comment.