test: Improve commit message tests

This commit is contained in:
James Shubin
2018-11-24 04:42:50 -05:00
parent 43b5b4f5a4
commit 5431bfdc29

View File

@@ -76,7 +76,12 @@ test_commit_message_common_bugs() {
fi
if git log --format=%s $1 | head -n 1 | grep -q "^resources:"
then
echo 'FAIL: Commit message starts with `resources:`, did you mean `engine: resources` ?'
echo 'FAIL: Commit message starts with `resources:`, did you mean `engine: resources:` ?'
exit 1
fi
if git log --format=%s $1 | head -n 1 | grep -q "^engine: resource:"
then
echo 'FAIL: Commit message starts with `engine: resource:`, did you mean `engine: resources:` ?'
exit 1
fi
if git log --format=%s $1 | head -n 1 | grep -q "^tests:"