X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fscripts%2Fcheck_commit_msg.sh;h=6869fbf6561064daad5bfca2ab4242722837ab99;hb=refs%2Fchanges%2F76%2F31476%2F1;hp=0baa2b55f8e10fa9bf3d60d5380db38a1e47c0ca;hpb=94bef09213c1e47d37f8342b746de767d9669739;p=vpp.git diff --git a/extras/scripts/check_commit_msg.sh b/extras/scripts/check_commit_msg.sh index 0baa2b55f8e..6869fbf6561 100755 --- a/extras/scripts/check_commit_msg.sh +++ b/extras/scripts/check_commit_msg.sh @@ -1,8 +1,9 @@ #/bin/env bash KNOWN_FEATURES=$(cat MAINTAINERS | sed -ne 's/^I:[[:space:]]*//p') -FEATURES=$(git show -s --format=%s --no-color | sed -e 's/\([a-z0-9 -]*\):.*/\1/') -KNOWN_TYPES="feature fix refactor style docs test make" +FEATURES=$(git show -s --format=%s --no-color \ + | sed -ne 's/^\([a-z0-9_ -]*\):.*$/\1/p') +KNOWN_TYPES="feature fix refactor improvement style docs test make" TYPE=$(git show -s --format=%b --no-color | sed -ne 's/^Type:[[:space:]]*//p') ERR="=============================== ERROR ===============================" @@ -47,3 +48,6 @@ if [ ${is_known} = "false" ] ; then echo $ERR exit 1 fi +echo "*******************************************************************" +echo "* VPP Commit Message Checkstyle Successfully Completed" +echo "*******************************************************************"