coverage icon indicating copy to clipboard operation
coverage copied to clipboard

Add support for GitHub Merge Queues

Open mars-lan opened this issue 2 years ago • 4 comments
trafficstars

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

mars-lan avatar Oct 16 '23 11:10 mars-lan

@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

orgoro avatar Jan 24 '24 07:01 orgoro

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

techman83 avatar Mar 30 '24 03:03 techman83

We need a way to compare two different commits

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

orgoro avatar May 21 '24 06:05 orgoro

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

tylertitsworth avatar May 29 '24 22:05 tylertitsworth