Meta: Allow overlong 'fixup!' commit titles in pre-commit hook

This commit is contained in:
Ben Wiederhake 2021-11-28 19:59:23 +01:00 committed by Brian Gianforcaro
parent 5217202737
commit 7ba7668fbb
Notes: sideshowbarker 2024-07-18 00:34:28 +09:00
2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ name: Commit linter
on: [pull_request_target]
# Make sure to update Meta/lint-commit.sh to match this script when adding new checks!
# (… but don't accept overlong 'fixup!' commit descriptions.)
jobs:
lint_commits:

View File

@ -24,6 +24,8 @@ while read -r line; do
# ignore comment lines
[[ "$line" =~ ^#.* ]] && continue
# ignore overlong 'fixup!' commit descriptions
[[ "$line" =~ ^fixup!\ .* ]] && continue
((line_number += 1))
line_length=${#line}