Allowed commit
This commit is contained in:
parent
cd0fd6f466
commit
333e977bf9
1 changed files with 2 additions and 2 deletions
|
|
@ -4,9 +4,9 @@
|
|||
commit_msg_file=$1
|
||||
first_line=$(head -n1 "$commit_msg_file")
|
||||
|
||||
if echo "$first_line" | grep -Eqi '^(QUAL|SEC|PERF|FIX|CLOSE|NEW|Clean code|Debug)'; then
|
||||
if echo "$first_line" | grep -Eqi '^(QUAL|SEC|PERF|FIX|CLOSE|NEW|Clean code|Debug[CSS)'; then
|
||||
exit 0
|
||||
else
|
||||
echo "The commit message must start with QUAL, SEC, PERF, FIX, CLOSE, NEW, Clean code, Debug ..."
|
||||
echo "The commit message must start with QUAL, SEC, PERF, FIX, CLOSE, NEW, Clean code, Debug, CSS ..."
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue