test: Add check for common doc vs docs ambiguity

This commit is contained in:
James Shubin
2017-11-23 08:20:44 -05:00
parent 23e167616f
commit 52fd1ae73e

View File

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