mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 08:47:36 +00:00
CI: Require a blank line between commit titles and bodies
This commit is contained in:
parent
14f6856d1d
commit
a8537ad096
2 changed files with 8 additions and 0 deletions
4
.github/workflows/lintcommits.yml
vendored
4
.github/workflows/lintcommits.yml
vendored
|
@ -20,6 +20,10 @@ jobs:
|
|||
pattern: /^[^\r]*$/,
|
||||
error: "Commit message contains CRLF line breaks (only unix-style LF linebreaks are allowed)",
|
||||
},
|
||||
{
|
||||
pattern: /^.+(\r?\n(\r?\n.*)*)?$/,
|
||||
error: "Empty line between commit title and body is missing",
|
||||
},
|
||||
{
|
||||
pattern: /^.{0,72}(?:\r?\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)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue