Skip to content

Auto-generated merge commit is causing the GitHub Action failing #78

@SiegeSailor

Description

@SiegeSailor

Describe the bug

I resolved a merge conflict by committing on the GitHub Web UI, which creates a commit with the following message:

Merge branch 'main' into release
    
Signed-off-by: Jin Yu Zhang <39463416+SiegeSailor@users.noreply.github.com>

However, the GitHub Action commitlint reports Commit message does not follow the Conventional Commits format for such a commit message:

To Reproduce

Create a merge commit on the GitHub UI.

Expected behavior

commitlint ignores the auto-generated merge commits.

Environment

  • Operating system: ubuntu-latest

Additional Context

commitlint (1.3.1) doesn't report any error when I run it locally:

commitlint "Merge branch 'main' into release\nSigned-off-by: Jin Yu Zhang <39463416+SiegeSailor@users.noreply.github.com>"
Commit validation: successful!
commitlint "Merge branch 'main' into release"
Commit validation: successful!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions