Webhooks are now available for batched PR merges in Merge Queue. This allows you to build custom automations and respond to events when batching is enabled.
The pull_request_batch.merged webhook payload lists all the PRs included in the batch, as well as information about the repo, the target branch you are merging into, and the test (or feature) branch:
1 "action": "merged",2 "pr_numbers": [3 1,4 25 ],6 "repository": {7 "host": "github.com",8 "name": "trunk-io",9 "owner": "mergequeue"10 },11 "status": "some string",12 "target_branch": "main",13 "test_branch": "trunk-merge/pr-1-2/abc123",14 "test_branch_sha": "a23f8853080d3fe873c3419a735513898c2329f500ce6aa39cf2253213fd00e4",15 "test_pr_number": 1516}
If you aren’t using batching on your Merge Queue, the pull_request.merged webhook is still available for individual PR merges.
Read the webhook docs to learn how to subscribe to Merge Queue webhooks.