diff --git a/.git-hooks/commit-msg b/.git-hooks/commit-msg index ad114df..6843d1f 100755 --- a/.git-hooks/commit-msg +++ b/.git-hooks/commit-msg @@ -5,10 +5,11 @@ GREEN="\033[1;32m" # Get the commit message (the parameter we're given is just the path to the # temporary file which holds the message). commit_message=$(cat "$1") -echo commit_message=$commit_message +ischore=cut -c 1-15 <<< "$commit_message " +echo $ischore # abort processing if this is a changelog release commit -if [[ "$commit_message" =~ ^chore.* ]]; then +if [[ "$ischore" == "chore(release):" ]]; then echo "${GREEN} ✔ Changelog release" exit 0 fi