test: Improve commit message test

We can classify better now that we have the new engine.
This commit is contained in:
James Shubin
2018-04-21 19:29:26 -04:00
parent 9a8408a092
commit 412a25462e

View File

@@ -71,7 +71,12 @@ test_commit_message_common_bugs() {
echo "Testing commit message for common bugs $1" echo "Testing commit message for common bugs $1"
if git log --format=%s $1 | head -n 1 | grep -q "^resource:" if git log --format=%s $1 | head -n 1 | grep -q "^resource:"
then then
echo 'FAIL: Commit message starts with `resource:`, did you mean `resources:` ?' echo 'FAIL: Commit message starts with `resource:`, did you mean `engine: resources:` ?'
exit 1
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` ?'
exit 1 exit 1
fi fi
if git log --format=%s $1 | head -n 1 | grep -q "^tests:" if git log --format=%s $1 | head -n 1 | grep -q "^tests:"