Skip to main content
POST
List completed merge queue testing for a time range

Authorizations

x-api-token
string
header
required

Body

application/json
repo
object
required

The repository whose merge queue ran the testing.

targetBranch
string
required

The target branch of the merge queue.

Example:

"main"

since
string<date-time>
required

ISO 8601 timestamp (inclusive). Only testing that finished at or after this time is returned. Must be no more than 45 days before until; merge metrics are retained for 45 days, so anything earlier returns nothing.

Example:

"2024-01-01T00:00:00Z"

until
string<date-time>

ISO 8601 timestamp (inclusive) bounding the upper end of the range. Defaults to now.

Example:

"2024-01-08T00:00:00Z"

offset
integer
default:0

Number of results to skip. Defaults to 0.

Required range: x >= 0
take
integer
default:50

Number of results to return (1-100). Defaults to 50.

Required range: 1 <= x <= 100

Response

OK

testingResults
object[]
required

Completed stretches of merge queue testing, newest first. One entry per pull request per attempt, so a pull request appears several times if its testing restarted, and a batched test run appears once per pull request it tested. Testing still in progress is not included.

totalItems
number
required

The total number of results matching the request, ignoring offset and take.