diff --git a/.github/workflows/lintcommits.yml b/.github/workflows/lintcommits.yml index 7d1006b316..0c5dddda20 100644 --- a/.github/workflows/lintcommits.yml +++ b/.github/workflows/lintcommits.yml @@ -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: diff --git a/Meta/lint-commit.sh b/Meta/lint-commit.sh index b30dd9bcd0..293220da7a 100755 --- a/Meta/lint-commit.sh +++ b/Meta/lint-commit.sh @@ -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}