CI: Don't include merge commits when checking message length.

This commit is contained in:
John MacFarlane 2020-05-25 09:26:16 -07:00
parent 37ef57be51
commit fdf34816a5

View file

@ -61,7 +61,7 @@ jobs:
- name: Check commit message
run: |
# Get last commit message
git log -1 --pretty=format:"%s" | grep -c "^[^#].{78}"
git log -1 --pretty=format:"%s" --no-merges | grep -c "^[^#].{78}"
if [ $? -eq 0 ]; then
echo "Last commit log contains a line with more than 78 characters."
exit 1