You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/sh
if ! type commitlint >/dev/null 2>/dev/null; then
echo ""
echo "commitlint could not be found"
echo "try again after installing commitlint or add commitlint to PATH"
echo ""
exit 2;
fi
commit_message_file=$(git rev-parse --git-dir)/COMMIT_EDITMSG
# Read the content of the commit message file
commit_message=$(cat "$commit_message_file")
# Check if the commit message starts with "merge"
if [[ "$commit_message" =~ ^merge ]]; then
# If it starts with "merge", exit without performing validation
exit 0
fi
commitlint lint --message $1
commitlint
fails auto-generated merge-commit messages; these should be allowed.The text was updated successfully, but these errors were encountered: