test: Add another check for off-by-one-error commit tags
This commit is contained in:
@@ -76,6 +76,11 @@ test_commit_message_common_bugs() {
|
|||||||
echo 'FAIL: Commit message starts with `doc:`, did you mean `docs:` ?'
|
echo 'FAIL: Commit message starts with `doc:`, did you mean `docs:` ?'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if git log --format=%s $1 | head -n 1 | grep -q "^example:"
|
||||||
|
then
|
||||||
|
echo 'FAIL: Commit message starts with `example:`, did you mean `examples:` ?'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ -n "$TRAVIS_PULL_REQUEST_SHA" ]]
|
if [[ -n "$TRAVIS_PULL_REQUEST_SHA" ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user