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:
Lucas CHOLLET 2022-12-10 15:15:23 +01:00 committed by Linus Groh
parent 54c12b76ed
commit b3478b3613

View file

@ -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",
},
{