test: Add new test for language prefix

This commit is contained in:
James Shubin
2018-02-07 21:52:06 -05:00
parent 79845f0dfd
commit e37bb3ac8a

View File

@@ -81,6 +81,11 @@ test_commit_message_common_bugs() {
echo 'FAIL: Commit message starts with `example:`, did you mean `examples:` ?' echo 'FAIL: Commit message starts with `example:`, did you mean `examples:` ?'
exit 1 exit 1
fi fi
if git log --format=%s $1 | head -n 1 | grep -q "^language:"
then
echo 'FAIL: Commit message starts with `language:`, did you mean `lang:` ?'
exit 1
fi
} }
if [[ -n "$TRAVIS_PULL_REQUEST_SHA" ]] if [[ -n "$TRAVIS_PULL_REQUEST_SHA" ]]