> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Merge Queue: Webhooks on batched PR merges

> 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.

Webhooks are now available for batched PR merges in Merge Queue. This allows you to build custom
automations and respond to events when
[batching](https://docs.trunk.io/merge-queue/concepts-and-optimizations/batching) is enabled.

The
[pull\_request\_batch.merged webhook](https://www.svix.com/event-types/us/org_2eQPL41Ew5XSHxiXZIamIUIXg8H/#pull_request_batch.merged)
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:

```
 "action": "merged",
  "pr_numbers": [
    1,
    2
  ],
  "repository": {
    "host": "github.com",
    "name": "trunk-io",
    "owner": "mergequeue"
  },
  "status": "some string",
  "target_branch": "main",
  "test_branch": "trunk-merge/pr-1-2/abc123",
  "test_branch_sha": "a23f8853080d3fe873c3419a735513898c2329f500ce6aa39cf2253213fd00e4",
  "test_pr_number": 15
}
```

If you aren’t using batching on your Merge Queue, the
[pull\_request.merged webhook](https://www.svix.com/event-types/us/org_2eQPL41Ew5XSHxiXZIamIUIXg8H/#pull_request.merged)
is still available for individual PR merges.

Read the [webhook docs](https://docs.trunk.io/merge-queue/webhooks) to learn how to subscribe to
Merge Queue webhooks.
