Skip to content

Commit

Permalink
fix(husky): do not check commit messages written by semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
kukko committed Aug 21, 2024
1 parent 4055652 commit 4b0d578
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
pnpx commitlint --edit
#!/bin/sh

if [ "$GITHUB_ACTIONS" != "true" ]; then
pnpx commitlint --edit
fi
2 changes: 1 addition & 1 deletion .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

if [ "$GITHUB_ACTIONS" = "false" ] && sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then
if [ "$GITHUB_ACTIONS" != "true" ] && sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then
exec < /dev/tty && pnpx cz --hook || true
fi

0 comments on commit 4b0d578

Please sign in to comment.