mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
CI: Correct regex to retrieve git merge commit
In 839c1a57
, I wrongly assumed that a matched pattern will raise an
error, it's the opposite. This patch "negates" the regex to solve the
issue.
This commit is contained in:
parent
54c12b76ed
commit
b3478b3613
2
.github/workflows/lintcommits.yml
vendored
2
.github/workflows/lintcommits.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
|||
error: "Commit message lines are too long (maximum allowed is 72 characters, except for URLs)",
|
||||
},
|
||||
{
|
||||
pattern: /^Merge branch/,
|
||||
pattern: /^((?!^Merge branch).)*$/,
|
||||
error: "Commit is a git merge commit, use the rebase command instead",
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue