API reference

Public Trunk Merge Queue API. All requests should be authenticated.

The Trunk Merge Queue API provides access to submit PRs for testing and merging, canceling PRs, and providing extra information to optimize the queue. The API is an HTTP REST API, returns JSON from all requests, and uses standard HTTP response codes.

All requests must be authenticated by providing the x-api-token header.

Pull Request Endpoints

Cancel a pull request in a merge queue.

post
Authorizations
x-api-tokenstringRequired
Body
targetBranchstringRequired
Responses
chevron-right
200

OK

application/json
post
/cancelPullRequest

Get a submitted pull request from a merge queue.

post
Authorizations
x-api-tokenstringRequired
Body
targetBranchstringRequired
Responses
chevron-right
200

OK

application/json
post
/getSubmittedPullRequest

Restart tests on a pull request in a merge queue.

post
Authorizations
x-api-tokenstringRequired
Body
targetBranchstringRequired
Responses
chevron-right
200

OK

application/json
post
/restartTestsOnPullRequest

Set impacted targets for a pull request.

post
Authorizations
x-api-tokenstringRequired
Body
targetBranchstringRequired
impactedTargetsany ofRequired
string[]Optional
or
const: ALLOptional
Responses
chevron-right
200

OK

application/json
post
/setImpactedTargets

Submit a pull request to a merge queue.

post
Authorizations
x-api-tokenstringRequired
Body
targetBranchstringRequired
priorityany ofOptional
integer · max: 4294967295Optional
or
stringOptional
or
nullOptional
Responses
chevron-right
200

OK

application/json
post
/submitPullRequest

Get details about testing that Merge Queue is performing

post
Authorizations
x-api-tokenstringRequired
Body
testRunIdstringRequired
targetBranchstringRequired
Responses
chevron-right
200

OK

application/json
post
/getMergeQueueTestingDetails

Queue Endpoints

Create a new merge queue.

post
Authorizations
x-api-tokenstringRequired
Body
targetBranchstringRequired
modestring · enumOptionalPossible values:
concurrencyinteger · min: 1 · max: 4294967295Optional
Responses
chevron-right
200

OK

application/json
post
/createQueue

Delete the specified merge queue. The queue must be empty in order to be deleted.

post
Authorizations
x-api-tokenstringRequired
Body
targetBranchstringRequired
Responses
chevron-right
200

OK

application/json
post
/deleteQueue

Get the merge queue.

post
Authorizations
x-api-tokenstringRequired
Body
targetBranchstringRequired
Responses
chevron-right
200

OK

application/json
post
/getQueue

Update the merge queue.

post
Authorizations
x-api-tokenstringRequired
Body
targetBranchstringRequired
statestring · enumOptionalPossible values:
concurrencyinteger · min: 1 · max: 4294967295Optional
bisectionConcurrencyinteger · min: 1 · max: 4294967295Optional
testingTimeoutMinutesinteger · min: 1 · max: 4294967295Optional
pendingFailureDepthinteger · min: 1 · max: 4294967295Optional
canOptimisticallyMergebooleanOptional
batchbooleanOptional
batchingMaxWaitTimeMinutesinteger · min: 1 · max: 4294967295Optional
batchingMinSizeinteger · min: 1 · max: 4294967295Optional
Responses
chevron-right
200

OK

application/json
post
/updateQueue

Last updated