Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
misc: add new type for commit message
[vpp.git]
/
extras
/
scripts
/
check_commit_msg.sh
diff --git
a/extras/scripts/check_commit_msg.sh
b/extras/scripts/check_commit_msg.sh
index
b9bfc30
..
4c24898
100755
(executable)
--- 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')
#/bin/env bash
KNOWN_FEATURES=$(cat MAINTAINERS | sed -ne 's/^I:[[:space:]]*//p')
-FEATURES=$(git show -s --format=%s --no-color | sed -e 's/\(.*\):.*/\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 ==============================="
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 $ERR
exit 1
fi
+echo "*******************************************************************"
+echo "* VPP Commit Message Checkstyle Successfully Completed"
+echo "*******************************************************************"