git.iko.soy/typeable/pandoc
on master help sign in
CI: Don't include merge commits when checking message length.
fdf3481John MacFarlane
.github/workflows/ci.yml+1−1
@@ -61,7 +61,7 @@ jobs:
61 - name: Check commit message
61 - name: Check commit message
62 run: |
62 run: |
63 # Get last commit message
63 # 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}"
65 if [ $? -eq 0 ]; then
65 if [ $? -eq 0 ]; then
66 echo "Last commit log contains a line with more than 78 characters."
66 echo "Last commit log contains a line with more than 78 characters."
67 exit 1
67 exit 1