Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GitHub Merge Queues #276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mars-lan
Copy link

@mars-lan mars-lan commented Oct 16, 2023

When using GitHub Merge Queue to merge a PR, the event name will be merge_group rather than pull_request.

@orgoro
Copy link
Owner

orgoro commented Jan 24, 2024

@mars-lan thanks!
can you help verify that the event properties contain -

const {pull_request} = context.payload
const base = pull_request?.base.sha
const head = pull_request?.head.sha

base/head sha?
if you can send a link to the object in the docs

@techman83
Copy link

There doesn't appear to be pull request details available in a merge group payload -> https://docs.github.com/en/webhooks/webhook-events-and-payloads#merge_group

@orgoro
Copy link
Owner

orgoro commented May 21, 2024

We need a way to compare two different commits

If you want to add support to that in the code I will merge it

@tylertitsworth
Copy link

github.event.merge_group.base_sha == github.event.pull_request.base.sha
github.event.merge_group.head_sha == github.event.pull_request.head.sha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants