Skip to content

fix: allow more git merge commit message formats - #6

Merged
srajasimman merged 2 commits into
mainfrom
fix/merge-branch-of-remote-pattern
Sep 29, 2026
Merged

srajasimman merged 2 commits into
mainfrom
fix/merge-branch-of-remote-pattern

Conversation

@srajasimman

@srajasimman srajasimman commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Problem

The default pattern rejected common git-generated merge messages:

  • Merge branch 'main' of org/repo into feature/x (pull from a remote)
  • Merge remote-tracking branch 'origin/main' [into feature/x]
  • Merge pull request #N from owner/branch

Fix

  • of <repo> and into <branch> are now both optional in the merge-branch pattern (git omits into when merging into the default branch).
  • Added patterns for Merge remote-tracking branch '...' ( into <branch> optional, since git omits it for the default branch) and Merge pull request #N from <ref>.

Verification

Ran the default pattern against sample messages: all the formats above pass; malformed ones (unquoted remote-tracking branch, PR merge without number, arbitrary text) still fail. The action itself and any test suite were not run.

@srajasimman srajasimman changed the title fix: allow 'of <repo>' in merge branch commit messages fix: allow more git merge commit message formats Sep 29, 2026
@srajasimman
srajasimman merged commit aa70a6b into main Sep 29, 2026
2 checks passed
@srajasimman
srajasimman deleted the fix/merge-branch-of-remote-pattern branch September 29, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant