mondarth-campaign/.husky/prepare-commit-msg

14 lines
271 B
Plaintext
Raw Normal View History

2025-07-14 19:00:35 +01:00
#!/bin/env bash
if [ "$2" = "commit" ]; then
echo "Skipping prepare-commit-msg hook due to amend."
exit 0
fi
if [ -n "$GIT_SEQUENCE_EDITOR" ]; then
echo "Skipping prepare-commit-msg hook due to rebase."
exit 0
fi
exec < /dev/tty && pnpm exec cz --hook || true