v2

latestOpenAPI 3.1.0UNLICENSED2026-07-26210239.8 KB

Get details about testing that Merge Queue is performing

post/getMergeQueueTestingDetails

Request body

testRunIdstring required
targetBranchstring required

The target branch of the merge queue that is running the test run (e.g. main).

Response

OK

requiredStatusesstring[] required

The list of status check names that must all pass for the test run to succeed and its PRs to merge.

requiredStatusesSource'trunk_config' | 'repo_provider_branch_protection' | 'merge_instance'

Where the merge queue sourced the list of required statuses from. trunk_config — from the repository's .trunk/trunk.yaml. repo_provider_branch_protection — from the Git provider's branch protection settings (e.g. GitHub branch protection rules). merge_instance — from the merge queue's own configuration (e.g. set via the API).

testBranchstring required

The name of the temporary branch the merge queue created to run tests against (e.g. trunk-merge/pr-1815/5df78918-...).

testBranchShastring required

The commit SHA at the tip of the test branch that the test run was started on.

createdAtstring

ISO 8601 timestamp of when the test run was created.

status'in_progress' | 'failed' | 'cancelled' | 'succeeded'

The status of a merge queue test run. in_progress — tests are currently running. succeeded — all required statuses passed. failed — at least one required status failed. cancelled — the test run was cancelled before completion.

impactedTargetsstring[]

The union of impacted build/test targets across all PRs involved in the test run, including any dependent PRs previously merged into the test branch. Only present when impacted targets are being uploaded for the repository.

impactedTargetsForTestedPrsstring[]

The impacted build/test targets for only the PRs being tested in this run (i.e. testedPullRequests), excluding any dependent PRs. Only present when impacted targets are being uploaded for the repository.

dependentPrsnumber[]

PR numbers of other PRs this test run depends on but is not itself testing. Populated in parallel-mode queues when previously-passed PRs ahead of the tested PR are merged into the test branch to form the predicted base.