test_insights

Get detailed information about a test

Changed on

Get detailed information about a test.

Application key permission: tests: read.

get/ci/{owner}/repositories/{repository}/tests/{test_id}

Request

  • Base URL
    https://api.mergify.com/v1
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

test_idstring uuid5 required

ID of the test

repositorystring required

The name of the repository

ownerstring required

The owner of the repository

Query parameters

pipeline_namestring nullable

Only read the test's executions in this pipeline. Omit to read them across every pipeline.

job_namestring nullable

Only read the test's executions in this job. Omit to read them across every job.

branch_namestring nullable

Read the tests of this branch, one the repository tracks its tests on. Defaults to the repository's default branch, which the repository must then track.

Headers

Mergify-Versionstring nullable

The API version the request is written against, a date (YYYY-MM-DD). Without it, the request is served 2026-11-16. A version this server does not serve is refused with a 400, the error code API_VERSION_UNKNOWN and the versions it serves in served_versions.

Example:2026-11-16

Response

Successful Response

repositorystring required
test_namestring required
test_idstring uuid5 required
health_statusstring required
last_conclusionstring nullable required
failure_rationumber required
flakiness_rationumber required
success_rationumber required
flaky_detection_enabledboolean required
first_failure_atstring date-time nullable required
first_failure_commitstring nullable required
last_failure_atstring date-time nullable required
last_success_atstring date-time nullable required
test_frameworkstring nullable required
test_framework_versionstring nullable required
test_programming_languagestring nullable required
test_filepathstring nullable required
test_function_namestring nullable required

Changes

    • warning

      added the new GITHUB_TWO_FACTOR_AUTHENTICATION_NONCOMPLIANT enum value to the response property for the response status

    • warning

      added the new GITHUB_TWO_FACTOR_AUTHENTICATION_NONCOMPLIANT enum value to the response property for the response status

    • warning

      added the new STATISTICS_SCOPE_PERIOD_TOO_LARGE enum value to the response property for the response status

    • warning

      added the new STATISTICS_SCOPE_PERIOD_TOO_LARGE enum value to the response property for the response status