Skip to main content
POST
Get several submitted pull requests from a merge queue.

Authorizations

x-api-token
string
header
required

Body

application/json
repo
object
required
targetBranch
string
required
prs
(By pull request number · object | By head branch · object)[]
required

The pull requests to look up, at most 50 per request. Each is identified the same way as in getSubmittedPullRequest.

Required array length: 1 - 50 elements

The pull request to look up. Identify it by number or by head branch, but not both.

includeTimeline
boolean

When true, the response carries timeline: every state change the pull request went through, with timestamps and the details of each. Defaults to false.

Response

OK

pullRequests
object[]
required

One entry per requested pull request that has been submitted to this queue, in the order requested. Pull requests that were not found are omitted here and listed in notFound instead, so this array can be shorter than prs. To line entries up with what you asked for, drop the prs entries echoed in notFound; what remains corresponds to this array position for position. Entries requested by number can also be matched on prNumber.

notFound
(By pull request number · object | By head branch · object)[]
required

The requested pull requests that have never been submitted to this queue, echoed back one per entry of prs that missed. A whole request fails only when the repository or queue itself is not found.

The pull request to look up. Identify it by number or by head branch, but not both.