-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
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 <[email protected]>
However, the GitHub Action commitlint reports Commit message does not follow the Conventional Commits format for such a commit message:
pull_requestwith thesynchronizeevent type:commitlintpulls out all the commit messages and therefore reports the error message every time- see https://github.com/SiegeSailor/Smarty-Notebook/actions/runs/19212728519/job/54917412427
pushcommitlintonly validates the current commit message, so only the action triggered by the merge commit reports the error message- See https://github.com/SiegeSailor/Smarty-Notebook/actions/runs/19205599978/job/54900288644 for the failed case
- See https://github.com/SiegeSailor/Smarty-Notebook/actions/runs/19212728100/job/54917411463 for the successful case
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 <[email protected]>"
Commit validation: successful!commitlint "Merge branch 'main' into release"
Commit validation: successful!Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed