Skip to content

Commit

Permalink
Ignore long lines containing links
Browse files Browse the repository at this point in the history
Allow long lines containing https:// or www.
  • Loading branch information
MGaetan89 authored and utzcoz committed Feb 23, 2024
1 parent 6e7dafe commit 1d8e66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/validate_commit_message.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
fi
for line in $commit_body; do
if [ "${#line}" -gt 120 ]; then
if [ "${#line}" -gt 120 ] && [[ ! "$line" =~ (https?://|www\.) ]]; then
echo "Error: the following line of the commit body is too long (max: 120 characters):"
echo "> $line"
exit 1
Expand Down

0 comments on commit 1d8e66c

Please sign in to comment.