test: Add a new test to the commit message checking
Fix the missing "s" bug.
This commit is contained in:
@@ -104,6 +104,11 @@ test_commit_message_common_bugs() {
|
|||||||
echo 'FAIL: Commit message starts with `language:`, did you mean `lang:` ?'
|
echo 'FAIL: Commit message starts with `language:`, did you mean `lang:` ?'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if git log --format=%s $1 | head -n 1 | grep -q "^lang: func:"
|
||||||
|
then
|
||||||
|
echo 'FAIL: Commit message starts with `lang: func:`, did you mean `lang: funcs:` ?'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ -n "$TRAVIS_PULL_REQUEST_SHA" ]]
|
if [[ -n "$TRAVIS_PULL_REQUEST_SHA" ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user