List pull requests in a merge queue.
Returns a paginated list of pull requests in the merge queue. Optionally filter by state and/or by a time range for concluded pull requests.
Authorizations
Your organization API token. In the Trunk app, find it under Settings → Developer → API Keys, in the Organization API token (v1) section. v2 API keys don't work with the v1 API. The v1 API will be deprecated soon.
Body
The target branch of the merge queue.
"main"
Optional filter for the state of pull requests. If not provided, pull requests of all states will be returned.
not_ready, pending, testing, tests_passed, merged, failed, cancelled, pending_failure Optional ISO 8601 timestamp. When provided, returns pull requests that concluded (merged, failed, or cancelled) since this time. Defaults to the beginning of time when only until is provided.
"2024-01-01T00:00:00Z"
Optional ISO 8601 timestamp bounding the upper end of the concluded time range. When either since or until is provided, only pull requests that concluded (merged, failed, or cancelled) within the range are returned. Defaults to now.
"2024-02-01T00:00:00Z"
Optional cursor for pagination. Use the nextCursor from the previous response.
Number of pull requests to return (1-100). Defaults to 50.
1 <= x <= 100