feat: handle merge_group event - get squashed commit #806
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support for GitHub Merge Queue (merge_group Event)
Summary
This pull request adds support for GitHub's merge queue functionality by handling the
merge_group
event in thecommitlint-github-action
. It enables users who utilize GitHub's merge queue feature to lint commit messages effectively during the merge process.Resolve #744 #757
Changes
action.mjs
and tests to Supportmerge_group
Event:merge_group
event.merge_group
event.Testing
I've tested the updated action extensively to ensure it works correctly with the
merge_group
event.Test Repository: yossi-test-org/test-merge-queue
Test Pull Request: PR #24
Test Steps
commitlint
status check.merge_group
event and runs thecommitlint
action.pull_request
event with a job namedcommitlint
to satisfy merge queue requirements.merge_group
event.commitlint
action runs successfully during themerge_group
event on the squashed commit.For testing I also pushed the image to a container registry and ran the workflow against it (https://github.com/users/YossiSaadi/packages/container/package/commitlint-github-action)