test: Improve commit message tests
This commit is contained in:
@@ -76,7 +76,12 @@ test_commit_message_common_bugs() {
|
|||||||
fi
|
fi
|
||||||
if git log --format=%s $1 | head -n 1 | grep -q "^resources:"
|
if git log --format=%s $1 | head -n 1 | grep -q "^resources:"
|
||||||
then
|
then
|
||||||
echo 'FAIL: Commit message starts with `resources:`, did you mean `engine: resources` ?'
|
echo 'FAIL: Commit message starts with `resources:`, did you mean `engine: resources:` ?'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if git log --format=%s $1 | head -n 1 | grep -q "^engine: resource:"
|
||||||
|
then
|
||||||
|
echo 'FAIL: Commit message starts with `engine: resource:`, did you mean `engine: resources:` ?'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if git log --format=%s $1 | head -n 1 | grep -q "^tests:"
|
if git log --format=%s $1 | head -n 1 | grep -q "^tests:"
|
||||||
|
|||||||
Reference in New Issue
Block a user