summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-11-28 19:59:23 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-11-28 11:49:13 -0800
commit7ba7668fbb05a455ebe4182c9bf90ff45eac0e04 (patch)
tree02d1b5de5b0c3009c166129a14c7e22e9385335b
parent52172027376886f05e28fab412fbe3c0c9ea6d41 (diff)
downloadserenity-7ba7668fbb05a455ebe4182c9bf90ff45eac0e04.zip
Meta: Allow overlong 'fixup!' commit titles in pre-commit hook
-rw-r--r--.github/workflows/lintcommits.yml1
-rwxr-xr-xMeta/lint-commit.sh2
2 files changed, 3 insertions, 0 deletions
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}