X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fscripts%2Fcheck_commit_msg.sh;h=6869fbf6561064daad5bfca2ab4242722837ab99;hb=48c0534c2eafe23fe8efba8c913109f30f6a294c;hp=2cc63c5fbd1208e3053d71f41d494c7d8bc2c074;hpb=e7906906079ca2d67bf67cfa9939523213230b56;p=vpp.git diff --git a/extras/scripts/check_commit_msg.sh b/extras/scripts/check_commit_msg.sh index 2cc63c5fbd1..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 ==============================="