> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get details about testing that Merge Queue is performing



## OpenAPI

````yaml /openapi.json post /getMergeQueueTestingDetails
openapi: 3.1.0
info:
  title: Trunk APIs
  version: 1.0.0
  license:
    name: UNLICENSED
servers:
  - url: https://api.trunk.io/v1
security: []
paths:
  /getMergeQueueTestingDetails:
    post:
      summary: Get details about testing that Merge Queue is performing
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                repo:
                  type: object
                  properties:
                    host:
                      type: string
                      description: The host of the repository (e.g. `github.com`).
                    owner:
                      type: string
                      description: The owner of the repository (e.g. `my-org`).
                    name:
                      type: string
                      description: The name of the repository (e.g. `my-repo`).
                  required:
                    - host
                    - owner
                    - name
                  description: The repository whose merge queue is running the test run.
                testRunId:
                  type: string
                targetBranch:
                  type: string
                  description: >-
                    The target branch of the merge queue that is running the
                    test run (e.g. `main`).
              required:
                - repo
                - testRunId
                - targetBranch
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  requiredStatuses:
                    type: array
                    items:
                      type: string
                    description: >-
                      The list of status check names that must all pass for the
                      test run to succeed and its PRs to merge.
                  requiredStatusesSource:
                    type: string
                    enum:
                      - trunk_config
                      - repo_provider_branch_protection
                      - merge_instance
                    description: >-
                      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).
                  testBranch:
                    type: string
                    description: >-
                      The name of the temporary branch the merge queue created
                      to run tests against (e.g.
                      `trunk-merge/pr-1815/5df78918-...`).
                  testBranchSha:
                    type: string
                    description: >-
                      The commit SHA at the tip of the test branch that the test
                      run was started on.
                  createdAt:
                    type: string
                    description: ISO 8601 timestamp of when the test run was created.
                  status:
                    type: string
                    enum:
                      - in_progress
                      - failed
                      - cancelled
                      - succeeded
                    description: >-
                      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.
                  checkSuites:
                    type: array
                    items:
                      type: object
                      properties:
                        checkRuns:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                                description: >-
                                  The name of the GitHub check run (e.g.
                                  `build`, `lint`).
                              url:
                                type: string
                                description: URL to the check run on GitHub.
                              status:
                                type: string
                                enum:
                                  - QUEUED
                                  - IN_PROGRESS
                                  - COMPLETED
                                description: >-
                                  The status of a GitHub check run. Mirrors
                                  GitHub's check run status values.
                              conclusion:
                                type: string
                                enum:
                                  - ACTION_REQUIRED
                                  - CANCELLED
                                  - FAILURE
                                  - NEUTRAL
                                  - SUCCESS
                                  - SKIPPED
                                  - STALE
                                  - TIMED_OUT
                                description: >-
                                  The conclusion of a completed GitHub check
                                  run. Mirrors GitHub's check run conclusion
                                  values; only set once `status` is `COMPLETED`.
                            required:
                              - name
                              - url
                          description: >-
                            The individual check runs that make up this check
                            suite.
                      required:
                        - checkRuns
                    description: GitHub check suites reported against the test branch.
                  statusChecks:
                    type: array
                    items:
                      type: object
                      properties:
                        context:
                          type: string
                          description: >-
                            The context (name) of the status check as posted to
                            GitHub (e.g. `ci/lint`).
                        url:
                          type: string
                          description: >-
                            URL with more details about this status check, if
                            any.
                        state:
                          type: string
                          enum:
                            - ERROR
                            - FAILURE
                            - PENDING
                            - SUCCESS
                          description: >-
                            The state of a GitHub commit status check. Mirrors
                            GitHub's commit status state values.
                      required:
                        - context
                    description: >-
                      GitHub commit status checks reported against the test
                      branch SHA.
                  testedPullRequests:
                    type: array
                    items:
                      type: object
                      properties:
                        prNumber:
                          type: number
                          description: The pull request number on the Git provider.
                        prUrl:
                          type: string
                          description: URL of the pull request on the Git provider.
                        title:
                          type: string
                          description: The title of the pull request.
                      required:
                        - prNumber
                        - prUrl
                        - title
                    description: >-
                      The pull requests that this test run is testing. Contains
                      multiple entries when batching is enabled.
                  impactedTargets:
                    type: array
                    items:
                      type: string
                    description: >-
                      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.
                  impactedTargetsForTestedPrs:
                    type: array
                    items:
                      type: string
                    description: >-
                      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.
                  dependentPrs:
                    type: array
                    items:
                      type: number
                    description: >-
                      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.
                required:
                  - requiredStatuses
                  - testBranch
                  - testBranchSha
                  - checkSuites
                  - statusChecks
                  - testedPullRequests
        '400':
          description: Bad Request
          content:
            application/plain-text:
              schema:
                type: string
        '401':
          description: Unauthorized
          content:
            application/plain-text:
              schema:
                type: string
        '404':
          description: Not Found
          content:
            application/plain-text:
              schema:
                type: string
        '500':
          description: Internal Server Error
          content:
            application/plain-text:
              schema:
                type: string
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-token

````