CI: Don't include merge commits when checking message length.
commitfdf34816a528740ec53ba392609f37d3e70a2f85
authorJohn MacFarlane <jgm@berkeley.edu>
dateMon 25 May 2020, 09:26 (6 years ago)
parent37ef57b
.github/workflows/ci.yml+1−1
@@ -61,7 +61,7 @@ jobs:
6161 - name: Check commit message
6262 run: |
6363 # Get last commit message
64− git log -1 --pretty=format:"%s" | grep -c "^[^#].{78}"
64+ git log -1 --pretty=format:"%s" --no-merges | grep -c "^[^#].{78}"
6565 if [ $? -eq 0 ]; then
6666 echo "Last commit log contains a line with more than 78 characters."
6767 exit 1