mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
Meta: Allow overlong 'fixup!' commit titles in pre-commit hook
This commit is contained in:
parent
5217202737
commit
7ba7668fbb
2 changed files with 3 additions and 0 deletions
1
.github/workflows/lintcommits.yml
vendored
1
.github/workflows/lintcommits.yml
vendored
|
@ -3,6 +3,7 @@ name: Commit linter
|
||||||
on: [pull_request_target]
|
on: [pull_request_target]
|
||||||
|
|
||||||
# Make sure to update Meta/lint-commit.sh to match this script when adding new checks!
|
# 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:
|
jobs:
|
||||||
lint_commits:
|
lint_commits:
|
||||||
|
|
|
@ -24,6 +24,8 @@ while read -r line; do
|
||||||
|
|
||||||
# ignore comment lines
|
# ignore comment lines
|
||||||
[[ "$line" =~ ^#.* ]] && continue
|
[[ "$line" =~ ^#.* ]] && continue
|
||||||
|
# ignore overlong 'fixup!' commit descriptions
|
||||||
|
[[ "$line" =~ ^fixup!\ .* ]] && continue
|
||||||
|
|
||||||
((line_number += 1))
|
((line_number += 1))
|
||||||
line_length=${#line}
|
line_length=${#line}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue