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:
parent
e197ab8ff6
commit
e3a56ef913
1 changed files with 4 additions and 4 deletions
8
.github/workflows/lint-commits.yml
vendored
8
.github/workflows/lint-commits.yml
vendored
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue