CI: Move commit message line rule down in list

This synchronizes the order of rules between `Meta/lint-commit.sh` and
this workflow. No functional changes.
This commit is contained in:
Jelle Raaijmakers 2025-10-24 10:01:36 +02:00 committed by Jelle Raaijmakers
parent e197ab8ff6
commit e3a56ef913

View file

@ -27,10 +27,6 @@ jobs:
pattern: /^.+(\n(\n.*)*)?$/,
error: "Empty line between commit title and body is missing",
},
{
pattern: /^.{0,72}(?:\n(?:(.{0,72})|(.*?([a-z]+:\/\/)?(([a-zA-Z0-9_]|-)+\.)+[a-z]{2,}(:\d+)?([a-zA-Z_0-9@:%\+.~\?&/=]|-)+).*?))*$/,
error: "Commit message lines are too long (maximum allowed is 72 characters, except for URLs)",
},
{
pattern: /^((?!^Merge branch )[\s\S])*$/,
error: "Commit is a git merge commit, use the rebase command instead",
@ -47,6 +43,10 @@ jobs:
pattern: /^.+[^.\n](\n.*)*$/,
error: "Commit title ends in a period",
},
{
pattern: /^.{0,72}(?:\n(?:(.{0,72})|(.*?([a-z]+:\/\/)?(([a-zA-Z0-9_]|-)+\.)+[a-z]{2,}(:\d+)?([a-zA-Z_0-9@:%\+.~\?&/=]|-)+).*?))*$/,
error: "Commit message lines are too long (maximum allowed is 72 characters, except for URLs)",
},
{
pattern: /^((?!Signed-off-by: )[\s\S])*$/,
error: "Commit body contains a Signed-off-by tag",