From 721220cc81faefe678b2607e8a273be76a21fd9a Mon Sep 17 00:00:00 2001 From: Rajasimman S Date: Wed, 30 Sep 2026 01:34:29 +0530 Subject: [PATCH] fix: allow merge branch messages without 'into' --- commit-message-validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit-message-validator.js b/commit-message-validator.js index 9cff4ee..1f2e331 100644 --- a/commit-message-validator.js +++ b/commit-message-validator.js @@ -2,7 +2,7 @@ const core = require('@actions/core'); const github = require('@actions/github'); function buildDefaultPattern() { - const mergeBranchPattern = 'Merge branch [\'"][^\'"]+[\'"](?: of [^\\s]+)? into [^\\s]+'; + const mergeBranchPattern = 'Merge branch [\'"][^\'"]+[\'"](?: of [^\\s]+)?(?: into [^\\s]+)?'; // git omits " into " when merging into the default branch const remoteTrackingPattern = 'Merge remote-tracking branch [\'"][^\'"]+[\'"](?: into [^\\s]+)?'; const mergePullRequestPattern = 'Merge pull request #\\d+ from [^\\s]+';