|
@@ -28,6 +28,10 @@ jobs:
|
|
|
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)",
|
|
|
},
|
|
|
+ {
|
|
|
+ pattern: /^Merge branch/,
|
|
|
+ error: "Commit is a git merge commit, use the rebase command instead",
|
|
|
+ },
|
|
|
{
|
|
|
pattern: /^\S.*?\S: .+/,
|
|
|
error: "Missing category in commit title (if this is a fix up of a previous commit, it should be squashed)",
|