test: Add new test for language prefix
This commit is contained in:
@@ -81,6 +81,11 @@ test_commit_message_common_bugs() {
|
||||
echo 'FAIL: Commit message starts with `example:`, did you mean `examples:` ?'
|
||||
exit 1
|
||||
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" ]]
|
||||
|
||||
Reference in New Issue
Block a user