CI: Don't include merge commits when checking message length.
This commit is contained in:
parent
37ef57be51
commit
fdf34816a5
1 changed files with 1 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue