Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 82dee8a

Browse files
committed
CI/CD: Removed 72 chars limit on commit messages
1 parent 8b3ad07 commit 82dee8a

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

.github/workflows/lint-commits.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ jobs:
2424
pattern: /^.+(\r?\n(\r?\n.*)*)?$/,
2525
error: "Empty line between commit title and body is missing",
2626
},
27-
{
28-
pattern: /^.{0,72}(?:\r?\n(?:(.{0,72})|(.*?([a-z]+:\/\/)?(([a-zA-Z0-9_]|-)+\.)+[a-z]{2,}(:\d+)?([a-zA-Z_0-9@:%\+.~\?&/=]|-)+).*?))*$/,
29-
error: "Commit message lines are too long (maximum allowed is 72 characters, except for URLs)",
30-
},
3127
{
3228
pattern: /^\S.*?\S: .+/,
3329
error: "Missing category in commit title (if this is a fix up of a previous commit, it should be squashed)",

scripts/lint-commit.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,5 @@ while read -r line; do
4848
error "Commit title ends in a period"
4949
fi
5050

51-
url_pattern="([a-z]+:\/\/)?(([a-zA-Z0-9_]|-)+\.)+[a-z]{2,}(:\d+)?([a-zA-Z_0-9@:%\+.~\?&\/=]|-)+"
52-
if [[ $line_length -gt 72 ]] && (echo "$line" | grep -E -v -q "$url_pattern"); then
53-
error "Commit message lines are too long (maximum allowed is 72 characters)"
54-
fi
55-
5651
done <"$commit_file"
5752
exit 0

0 commit comments

Comments
 (0)