You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
281 B
11 lines
281 B
#!/usr/bin/env sh
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
# Only run if Husky is enabled
|
|
if [ "$HUSKY_ENABLED" = "1" ] || [ -f .husky-enabled ]; then
|
|
echo "Running commit-msg hooks..."
|
|
npx commitlint --edit "$1"
|
|
else
|
|
echo "Husky commit-msg hook skipped (not enabled)"
|
|
exit 0
|
|
fi
|
|
|