Test Engine
Access data from Test Engine.
List the test runs of a commit #
/ci/{owner}/repositories/{repository}/tests/runs Returns every name test results arrived under for the commit, with the runs received under it -- one per leg or shard -- how they were sent, and whether they arrived whole; and whether the repository accepts test results at all. Read from Test Engine's own data only: a CI job missing from the list sent nothing Mergify received.
Application key permission: tests: read or ci_reporting: write.
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
head_sha string required The full SHA of the commit whose test runs to list.
pattern: ^(?:[0-9a-fA-F]{40}|[0-9a-fA-F]{64})$
200 Successful Response
The commit the results were sent for.
Whether Mergify accepts test results for this repository: not_enabled when Test Engine is not enabled on it, so no test result is kept; paused when ingestion is paused for its organization.
enabled not_enabled pausedUploads to this repository still waiting to be ingested that arrived since this commit's first test run began, from this commit or another, counted up to 5000.
Example Response
{
"head_sha": "string",
"test_results_ingestion": "enabled",
"pending_uploads": 0,
"jobs": [
{
"pipeline_name": "string",
"job_name": "string",
"test_results": "results_received",
"test_runs": null
}
]
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/tests/runs" \
-H "Authorization: Bearer <token>" Search tests #
/ci/{owner}/repositories/{repository}/search/tests Search the tests that ran in a repository within its data retention.
Application key permission: tests: read.
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
test_name string[] Filter by test name. Pass multiple times to combine matches. Supports glob patterns (*, ?). Omit to return every test that ran within the data retention.
test_name_exclude string[] The test name to exclude
pipeline_name string[] The pipeline name to filter on
pipeline_name_exclude string[] The pipeline name to exclude
job_name string[] The job name to filter on
job_name_exclude string[] The job name to exclude
health_status ("healthy" | "dormant" | "flaky" | "broken")[] The health status to filter on
health_status_exclude ("healthy" | "dormant" | "flaky" | "broken")[] The health status to exclude
failed_executions_impact ("low" | "medium" | "high")[] The failed executions impact to filter on
failed_executions_impact_exclude ("low" | "medium" | "high")[] The failed executions impact to exclude
state ("quarantined" | "skipped")[] The states to filter on.
state_exclude ("quarantined" | "skipped")[] The states to exclude.
is_quarantined boolean Deprecated: use state=quarantined or state_exclude=quarantined instead. Only return tests whose branch, pipeline and job a quarantine covers (true) or does not (false). Omit to return both.
cursor string The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages
per_page integer The number of items per page
min: 1 · max: 100
sort "executions_count" | "test_name" | "pipeline_name" | "job_name" | "health_status" | "state" | "failed_executions_impact" | "failed_executions_ratio" Sort field
direction "asc" | "desc" Sort direction
branch_name string 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.
min length: 1 · max length: 255
200 Successful Response
The number of items in this page
The number of items per page
Total number of test identities matching the search query, across all pages.
Example Response
{
"size": 0,
"per_page": 0,
"tests": [
{
"test_id": "string",
"test_name": "string",
"pipeline_name": "string",
"job_name": "string",
"state": "quarantined",
"health_status": "healthy",
"health_status_started_at": "2024-01-15T09:00:00Z",
"failed_executions_impact": "low"
}
],
"total": 0
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_BRANCH_NOT_TRACKED: The repository does not track its tests on branch_name, or on its default branch when branch_name is left out.
Body: APIErrorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/search/tests" \
-H "Authorization: Bearer <token>" Get detailed information about a test #
/ci/{owner}/repositories/{repository}/tests/{test_id} Get detailed information about a test.
Application key permission: tests: read.
test_id string <uuid5> required ID of the test
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
pipeline_name string Only read the test's executions in this pipeline. Omit to read them across every pipeline.
min length: 1 · max length: 255
job_name string Only read the test's executions in this job. Omit to read them across every job.
min length: 1 · max length: 255
branch_name string 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.
min length: 1 · max length: 255
200 Successful Response
Whether the test's last run failed, then passed on a test retry. last_conclusion reads failed for such a run, since it reports the first attempt. False when the test ran quarantined.
When the test entered its current health status: when the run that made it flaky or broken ended, or its last run for a dormant test. null for a healthy test.
Example Response
{
"repository": "string",
"test_name": "string",
"test_id": "string",
"health_status": "string",
"last_conclusion": "string",
"last_run_passed_on_retry": true,
"failure_ratio": 0,
"flakiness_ratio": 0,
"success_ratio": 0,
"flaky_detection_enabled": true,
"health_status_started_at": "2024-01-15T09:00:00Z",
"first_failure_at": "2024-01-15T09:00:00Z",
"first_failure_commit": "string",
"first_failure_pull": {
"id": 0,
"number": 0,
"title": "string",
"user": {
"id": 0,
"login": "string",
"avatar_url": "string"
}
},
"last_failure_at": "2024-01-15T09:00:00Z",
"last_success_at": "2024-01-15T09:00:00Z",
"test_framework": "string",
"test_framework_version": "string",
"test_programming_language": "string",
"test_filepath": "string",
"test_function_name": "string"
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_NOT_FOUND: No test of this ID ran in the repository under the request's filters.
Body: APIErrorBody
TEST_BRANCH_NOT_TRACKED: The repository does not track its tests on branch_name, or on its default branch when branch_name is left out.
Body: APIErrorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/tests/:test_id" \
-H "Authorization: Bearer <token>" Get a single test stat as a time series #
/ci/{owner}/repositories/{repository}/tests/{test_id}/stats/{stat} Return one of the test stats over the requested window, one point per UTC day, with a summary value over the full window.
Application key permission: tests: read.
test_id string <uuid5> required ID of the test
stat "success_count" | "failure_count" | "flaky_count" | "mean_duration" required repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
window "7d" | "30d" Period to cover: the last 7 or 30 UTC days, today included. Plans without Test Engine's 30-day retention always get the last 7 days.
pipeline_name string Only read the test's executions in this pipeline. Omit to read them across every pipeline.
min length: 1 · max length: 255
job_name string Only read the test's executions in this job. Omit to read them across every job.
min length: 1 · max length: 255
branch_name string 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.
min length: 1 · max length: 255
200 Successful Response
stat — 4 typesExample Response
{
"value": 0,
"value_over_time": [
{
"start": "2024-01-15T09:00:00Z",
"end": "2024-01-15T09:00:00Z",
"value": 0
}
],
"stat": "success_count"
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_NOT_FOUND: No test of this ID ran in the repository under the request's filters.
Body: APIErrorBody
TEST_BRANCH_NOT_TRACKED: The repository does not track its tests on branch_name, or on its default branch when branch_name is left out.
Body: APIErrorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/tests/:test_id/stats/:stat" \
-H "Authorization: Bearer <token>" Get a test's health transitions over time #
/ci/{owner}/repositories/{repository}/tests/{test_id}/health-transitions Return the moments a test's health (healthy/flaky/broken) changed over the requested window: the edges of the series, not the full series. The first point is the health where the window opens, at first_activity_at; each later one is the run at which the test turned flaky or broken, or recovered. Without a pipeline and job, the worst health across the test's jobs wins at each instant.
Application key permission: tests: read.
test_id string <uuid5> required ID of the test
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
window "7d" | "30d" | "90d" Period to cover: the last 7, 30 or 90 UTC days, today included.
pipeline_name string Only read the test's executions in this pipeline. Omit to read them across every pipeline.
min length: 1 · max length: 255
job_name string Only read the test's executions in this job. Omit to read them across every job.
min length: 1 · max length: 255
branch_name string 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.
min length: 1 · max length: 255
200 Successful Response
The test's first run in the window, the window start when it also ran before, or null when it had no activity. A consumer can treat a first_activity_at well after the window start as the test's genuine origin, and one at the window edge as history that predates the retained window.
Example Response
{
"transitions": [
{
"at": "2024-01-15T09:00:00Z",
"health_status": "healthy",
"exception_type": "string",
"pull_request": {}
}
],
"first_activity_at": "2024-01-15T09:00:00Z"
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_NOT_FOUND: No test of this ID ran in the repository under the request's filters.
Body: APIErrorBody
TEST_BRANCH_NOT_TRACKED: The repository does not track its tests on branch_name, or on its default branch when branch_name is left out.
Body: APIErrorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/tests/:test_id/health-transitions" \
-H "Authorization: Bearer <token>" Get test failures #
/ci/{owner}/repositories/{repository}/tests/{test_id}/failures Get test failures.
Application key permission: tests: read.
test_id string <uuid5> required ID of the test
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
pipeline_name string Only read the test's executions in this pipeline. Omit to read them across every pipeline.
min length: 1 · max length: 255
job_name string Only read the test's executions in this job. Omit to read them across every job.
min length: 1 · max length: 255
branch_name string 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.
min length: 1 · max length: 255
200 Successful Response
Example Response
{
"failures": [
{
"id": "string",
"exception_type": "string",
"exception_message": "string",
"failure_count": 0,
"first_failure_at": "2024-01-15T09:00:00Z",
"last_failure_at": "2024-01-15T09:00:00Z"
}
]
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_BRANCH_NOT_TRACKED: The repository does not track its tests on branch_name, or on its default branch when branch_name is left out.
Body: APIErrorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/tests/:test_id/failures" \
-H "Authorization: Bearer <token>" Get test failure #
/ci/{owner}/repositories/{repository}/tests/{test_id}/failures/{failure_id} Get test failure.
Application key permission: tests: read.
test_id string <uuid5> required ID of the test
failure_id string <uuid5> required ID of the failure
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
pipeline_name string Only read the test's executions in this pipeline. Omit to read them across every pipeline.
min length: 1 · max length: 255
job_name string Only read the test's executions in this job. Omit to read them across every job.
min length: 1 · max length: 255
branch_name string 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.
min length: 1 · max length: 255
200 Successful Response
Example Response
{
"id": "string",
"exception_type": "string",
"exception_message": "string",
"failure_count": 0,
"first_failure_at": "2024-01-15T09:00:00Z",
"last_failure_at": "2024-01-15T09:00:00Z",
"latest_events": [
{
"id": "string",
"failed_at": "2024-01-15T09:00:00Z",
"exception_stacktrace": "string",
"test_filepath": "string",
"test_programming_language": "string",
"job_url": "string"
}
]
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_FAILURE_NOT_FOUND: No failure of this ID exists for the test on the requested branch, pipeline and job, or the test itself does not.
Body: APIErrorBody
TEST_BRANCH_NOT_TRACKED: The repository does not track its tests on branch_name, or on its default branch when branch_name is left out.
Body: APIErrorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/tests/:test_id/failures/:failure_id" \
-H "Authorization: Bearer <token>" List a test's executions #
/ci/{owner}/repositories/{repository}/tests/{test_id}/executions List the branches and identities under which this test ran over the requested time window, ordered by total executions. Each branch has its own rows and counts.
Application key permission: tests: read.
test_id string <uuid5> required ID of the test
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
cursor string The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages
per_page integer The number of items per page
min: 1 · max: 100
sort "executions_count" | "pipeline_name" | "job_name" Sort field
direction "asc" | "desc" Sort direction
window "7d" | "30d" Period to cover: the last 7 or 30 UTC days, today included. Plans without Test Engine's 30-day retention always get the last 7 days.
branch_name string[] Read the tests of these branches, each one the repository tracks its tests on. Repeat it to read several branches. Defaults to the repository's default branch, which the repository must then track.
200 Successful Response
The number of items in this page
The number of items per page
Example Response
{
"size": 0,
"per_page": 0,
"executions": [
{
"test_id": "string",
"test_name": "string",
"branch_name": "string",
"pipeline_name": "string",
"job_name": "string",
"executions_count": 0
}
]
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_NOT_FOUND: No test of this ID ran in the repository under the request's filters.
Body: APIErrorBody
TEST_BRANCH_NOT_TRACKED: The repository does not track its tests on branch_name, or on its default branch when branch_name is left out.
Body: APIErrorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/tests/:test_id/executions" \
-H "Authorization: Bearer <token>" List quarantined tests #
/ci/{owner}/repositories/{repository}/quarantines Deprecated: use the test states API, /ci/{owner}/repositories/{repository}/test-states.
List the tests currently quarantined in the repository, ordered by sort and direction (quarantine creation time ascending by default). A quarantine applies to a specific branch or to all branches when branch is null.
Pass per_page (and optionally cursor) to receive a bounded page with RFC 5988 navigation links. Omitting per_page is deprecated: it returns the full list in a single response, flagged with a Deprecation header. A future release will return the first page of 10 quarantines instead.
Application key permission: quarantines: read or ci_reporting: write.
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
branch string Deprecated: use branch_name.
min length: 1 · max length: 255
test_id string <uuid>[] The test identifier to filter on
source ("manual" | "auto")[] The sources to filter on.
branch_name string[] The branch name to filter on. Quarantines applying to every branch always match.
branch_name_exclude string[] The branch name to exclude. Quarantines applying to every branch are kept.
pipeline_name string[] The pipeline name to filter on. Quarantines applying to every pipeline always match.
pipeline_name_exclude string[] The pipeline name to exclude. Quarantines applying to every pipeline are kept.
job_name string[] The job name to filter on. Quarantines applying to every job always match.
job_name_exclude string[] The job name to exclude. Quarantines applying to every job are kept.
test_name string[] The test name to filter on
test_name_exclude string[] The test name to exclude
health_status ("healthy" | "dormant" | "flaky" | "broken")[] The health status to filter on. Tests with no recent runs are left out.
health_status_exclude ("healthy" | "dormant" | "flaky" | "broken")[] The health status to exclude. Tests with no recent runs are kept.
cursor string The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages.
per_page integer The number of items per page, with RFC 5988 cursor pagination. Omitting it is deprecated: it returns the full list in a single response, and will default to 10 in a future release.
min: 1 · max: 100
sort "created_at" | "test_name" | "pipeline_name" | "job_name" | "health_status" | "source" Sort field. test_name orders by the first 255 characters of the name: names sharing them come back in a stable but arbitrary order.
direction "asc" | "desc" Sort direction. Ascending created_at is oldest first; ascending health_status is broken, flaky, dormant, healthy, then tests with no recent runs. pipeline_name and job_name put quarantines applying to every pipeline or job first.
200 Successful Response
The number of items in this page
The number of items per page, or null when the endpoint was called without per_page and returned the full list in a single response.
Total number of quarantines matching the filters, across all pages.
Example Response
{
"size": 0,
"per_page": 0,
"quarantined_tests": [
{
"id": "string",
"test_name": "string",
"test_id": "string",
"reason": "string",
"issue_url": "string",
"branch": "string",
"branch_name": "string",
"pipeline_name": "string",
"job_name": "string",
"created_at": "2024-01-15T09:00:00Z",
"source": "manual",
"health_status": "healthy",
"is_recovered": true,
"unquarantine_when_healthy": true
}
],
"total": 0
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, ci_insights_quarantine: Test Engine Quarantine.APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
INVALID_CURSOR: The cursor cannot be used for this request. Request the first page again without cursor, then follow the links of the response.
Body: InvalidCursorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/quarantines" \
-H "Authorization: Bearer <token>" Mark a test as quarantined #
/ci/{owner}/repositories/{repository}/quarantines Deprecated: use the test states API, /ci/{owner}/repositories/{repository}/test-states.
Add a test to the CI Quarantine for a repository
Application key permission: quarantines: write.
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
The fully qualified name of the test that needs to be quarantined
Reason for the test being added to the quarantine
Link to where the fix of the test is tracked, such as an issue in your issue tracker. Must be an http or https URL.
Branch name on which the test should be quarantined. If not specified, it will be quarantined on all branches. branch is accepted as a deprecated alias.
Pipeline in which the test should be quarantined. If not specified, it will be quarantined in all pipelines.
Job in which the test should be quarantined. If not specified, it will be quarantined in all jobs.
Unquarantine the test once it recovers, when Mergify no longer detects it as flaky or broken.
Deprecated: use branch_name.
201 Successful Response
The ID of the created quarantine
Example Response
{
"id": "string"
}
TEST_ALREADY_QUARANTINED: The test already has a state applying to some of the same runs. API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIErrorBody
SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, ci_insights_quarantine: Test Engine Quarantine.REPOSITORY_WRITE_ROLE_REQUIRED: The caller has read access to this private repository, not write access. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
Example Request
curl -X POST "https://api.mergify.com/v1/ci/:owner/repositories/:repository/quarantines" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"test_name": "string",
"reason": "string",
"issue_url": "string",
"branch_name": "string",
"pipeline_name": "string",
"job_name": "string",
"unquarantine_when_healthy": false,
"branch": "string"
}' Get a quarantined test #
/ci/{owner}/repositories/{repository}/quarantines/{quarantine_id} Deprecated: use the test states API, /ci/{owner}/repositories/{repository}/test-states.
Retrieve a single quarantined test by its quarantine ID.
Application key permission: quarantines: read.
quarantine_id string <uuid> required repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
200 Successful Response
Unique identifier of the quarantine record.
Fully qualified name of the quarantined test.
Stable identifier of the test, derived from its name. Identical across every quarantine of the same test and matches the test_id filter on the list endpoint.
Free-form reason recorded when the test was quarantined.
Link to where the fix of the test is tracked, such as an issue. null when none was given.
Deprecated: use branch_name.
Branch this quarantine applies to. null means the test is quarantined on every branch.
Pipeline this quarantine applies to. null means the test is quarantined in every pipeline.
Job this quarantine applies to. null means the test is quarantined in every job.
UTC timestamp when the test was added to quarantine.
How the test got quarantined: manual (user action) or auto (auto-quarantined).
manual autoHealth of the test, or null when it has no recent runs.
True when recent runs of this test are healthy, suggesting the test could be unquarantined.
True when Mergify unquarantines this test once it recovers.
Example Response
{
"id": "string",
"test_name": "string",
"test_id": "string",
"reason": "string",
"issue_url": "string",
"branch": "string",
"branch_name": "string",
"pipeline_name": "string",
"job_name": "string",
"created_at": "2024-01-15T09:00:00Z",
"source": "manual",
"health_status": "healthy",
"is_recovered": true,
"unquarantine_when_healthy": true
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, ci_insights_quarantine: Test Engine Quarantine.APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/quarantines/:quarantine_id" \
-H "Authorization: Bearer <token>" Update a quarantined test #
/ci/{owner}/repositories/{repository}/quarantines/{quarantine_id} Deprecated: use the test states API, /ci/{owner}/repositories/{repository}/test-states.
Update the fields sent of a quarantined test; the others keep their value.
Application key permission: quarantines: write.
quarantine_id string <uuid> required repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
Link to where the fix of the test is tracked, such as an issue in your issue tracker. Must be an http or https URL. null removes the link.
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, ci_insights_quarantine: Test Engine Quarantine.REPOSITORY_WRITE_ROLE_REQUIRED: The caller has read access to this private repository, not write access. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
Example Request
curl -X PATCH "https://api.mergify.com/v1/ci/:owner/repositories/:repository/quarantines/:quarantine_id" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"issue_url": "string"
}' Unquarantine a test #
/ci/{owner}/repositories/{repository}/quarantines/{quarantine_id} Deprecated: use the test states API, /ci/{owner}/repositories/{repository}/test-states.
Unquarantine a test with its quarantine id
Application key permission: quarantines: write.
quarantine_id string <uuid> required repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
200 Successful Response
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, ci_insights_quarantine: Test Engine Quarantine.REPOSITORY_WRITE_ROLE_REQUIRED: The caller has read access to this private repository, not write access. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
Example Request
curl -X DELETE "https://api.mergify.com/v1/ci/:owner/repositories/:repository/quarantines/:quarantine_id" \
-H "Authorization: Bearer <token>" List test states #
/ci/{owner}/repositories/{repository}/test-states List the states the repository's tests are put in, ordered by sort and direction (creation time ascending by default). A state applies to the branch, pipeline and job it names, or to every one of them when null.
Application key permission: quarantines: read or ci_reporting: write.
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
cursor string The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages
per_page integer The number of items per page
min: 1 · max: 100
sort "created_at" | "test_name" | "pipeline_name" | "job_name" | "health_status" | "source" Sort field
direction "asc" | "desc" Sort direction
state ("quarantined" | "skipped")[] The states to filter on.
state_exclude ("quarantined" | "skipped")[] The states to exclude.
test_id string <uuid>[] The test identifier to filter on
source ("manual" | "auto")[] The sources to filter on.
branch_name string[] The branch name to filter on. Test states applying to every branch always match.
branch_name_exclude string[] The branch name to exclude. Test states applying to every branch are kept.
pipeline_name string[] The pipeline name to filter on. Test states applying to every pipeline always match.
pipeline_name_exclude string[] The pipeline name to exclude. Test states applying to every pipeline are kept.
job_name string[] The job name to filter on. Test states applying to every job always match.
job_name_exclude string[] The job name to exclude. Test states applying to every job are kept.
test_name string[] The test name to filter on
test_name_exclude string[] The test name to exclude
health_status ("healthy" | "dormant" | "flaky" | "broken")[] The health status to filter on. Tests with no recent runs are left out.
health_status_exclude ("healthy" | "dormant" | "flaky" | "broken")[] The health status to exclude. Tests with no recent runs are kept.
200 Successful Response
The number of items in this page
The number of items per page
Deprecated: read count from GET …/test-states/count. Total number of test states matching the filters, across all pages.
Example Response
{
"size": 0,
"per_page": 0,
"test_states": [
{
"id": "string",
"test_name": "string",
"test_id": "string",
"state": "quarantined",
"reason": "string",
"issue_url": "string",
"branch_name": "string",
"pipeline_name": "string",
"job_name": "string",
"created_at": "2024-01-15T09:00:00Z",
"source": "manual",
"health_status": "healthy",
"is_recovered": true,
"unquarantine_when_healthy": true
}
],
"total": 0
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, ci_insights_quarantine: Test Engine Quarantine.APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
INVALID_CURSOR: The cursor cannot be used for this request. Request the first page again without cursor, then follow the links of the response.
Body: InvalidCursorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/test-states" \
-H "Authorization: Bearer <token>" Put a test in a state #
/ci/{owner}/repositories/{repository}/test-states Put a test in a state for a branch, pipeline and job.
Application key permission: quarantines: write.
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
The state to put the test in.
quarantined skippedThe fully qualified name of the test.
Why the test is put in this state.
Link to where the fix of the test is tracked, such as an issue in your issue tracker. Must be an http or https URL.
Branch the state applies to. Every branch when not specified.
Pipeline the state applies to. Every pipeline when not specified.
Job the state applies to. Every job when not specified.
For the quarantined state: unquarantine the test once it recovers, when Mergify no longer detects it as flaky or broken.
201 Successful Response
Unique identifier of the test state.
Fully qualified name of the test.
Stable identifier of the test, derived from its name. Identical across every state of the same test and matches the test_id filter on the list endpoint.
The state the test is in for this scope.
quarantined skippedFree-form reason recorded when the test was put in this state.
Link to where the fix of the test is tracked, such as an issue. null when none was given.
Branch this state applies to. null means every branch.
Pipeline this state applies to. null means every pipeline.
Job this state applies to. null means every job.
UTC timestamp when the test was put in this state.
How the test got this state: manual (user action) or auto (set by Mergify).
manual autoHealth of the test, or null when it has no recent runs.
Deprecated: read health_status. True when recent runs of this test are healthy.
For the quarantined state: true when Mergify unquarantines the test once it recovers.
Example Response
{
"id": "string",
"test_name": "string",
"test_id": "string",
"state": "quarantined",
"reason": "string",
"issue_url": "string",
"branch_name": "string",
"pipeline_name": "string",
"job_name": "string",
"created_at": "2024-01-15T09:00:00Z",
"source": "manual",
"health_status": "healthy",
"is_recovered": true,
"unquarantine_when_healthy": true
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, ci_insights_quarantine: Test Engine Quarantine.REPOSITORY_WRITE_ROLE_REQUIRED: The caller has read access to this private repository, not write access. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_STATE_NOT_FOUND: No test state of this ID exists in the repository.
Body: APIErrorBody
TEST_STATE_OVERLAP: The test already has a state applying to some of the same runs.
Body: APIErrorBody
Example Request
curl -X POST "https://api.mergify.com/v1/ci/:owner/repositories/:repository/test-states" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"state": "quarantined",
"test_name": "string",
"reason": "string",
"issue_url": "string",
"branch_name": "string",
"pipeline_name": "string",
"job_name": "string",
"unquarantine_when_healthy": false
}' Count test states #
/ci/{owner}/repositories/{repository}/test-states/count Count the test states the list returns for the same filters, across every page.
Application key permission: quarantines: read.
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
state ("quarantined" | "skipped")[] The states to filter on.
state_exclude ("quarantined" | "skipped")[] The states to exclude.
test_id string <uuid>[] The test identifier to filter on
source ("manual" | "auto")[] The sources to filter on.
branch_name string[] The branch name to filter on. Test states applying to every branch always match.
branch_name_exclude string[] The branch name to exclude. Test states applying to every branch are kept.
pipeline_name string[] The pipeline name to filter on. Test states applying to every pipeline always match.
pipeline_name_exclude string[] The pipeline name to exclude. Test states applying to every pipeline are kept.
job_name string[] The job name to filter on. Test states applying to every job always match.
job_name_exclude string[] The job name to exclude. Test states applying to every job are kept.
test_name string[] The test name to filter on
test_name_exclude string[] The test name to exclude
health_status ("healthy" | "dormant" | "flaky" | "broken")[] The health status to filter on. Tests with no recent runs are left out.
health_status_exclude ("healthy" | "dormant" | "flaky" | "broken")[] The health status to exclude. Tests with no recent runs are kept.
200 Successful Response
Number of test states matching the filters.
Example Response
{
"count": 0
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, ci_insights_quarantine: Test Engine Quarantine.APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/test-states/count" \
-H "Authorization: Bearer <token>" Get a test state #
/ci/{owner}/repositories/{repository}/test-states/{test_state_id} Retrieve a single test state by its ID.
Application key permission: quarantines: read.
test_state_id string <uuid> required repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
200 Successful Response
Unique identifier of the test state.
Fully qualified name of the test.
Stable identifier of the test, derived from its name. Identical across every state of the same test and matches the test_id filter on the list endpoint.
The state the test is in for this scope.
quarantined skippedFree-form reason recorded when the test was put in this state.
Link to where the fix of the test is tracked, such as an issue. null when none was given.
Branch this state applies to. null means every branch.
Pipeline this state applies to. null means every pipeline.
Job this state applies to. null means every job.
UTC timestamp when the test was put in this state.
How the test got this state: manual (user action) or auto (set by Mergify).
manual autoHealth of the test, or null when it has no recent runs.
Deprecated: read health_status. True when recent runs of this test are healthy.
For the quarantined state: true when Mergify unquarantines the test once it recovers.
Example Response
{
"id": "string",
"test_name": "string",
"test_id": "string",
"state": "quarantined",
"reason": "string",
"issue_url": "string",
"branch_name": "string",
"pipeline_name": "string",
"job_name": "string",
"created_at": "2024-01-15T09:00:00Z",
"source": "manual",
"health_status": "healthy",
"is_recovered": true,
"unquarantine_when_healthy": true
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, ci_insights_quarantine: Test Engine Quarantine.APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_STATE_NOT_FOUND: No test state of this ID exists in the repository.
Body: APIErrorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/test-states/:test_state_id" \
-H "Authorization: Bearer <token>" Update a test state #
/ci/{owner}/repositories/{repository}/test-states/{test_state_id} Update the fields sent of a test state; the others keep their value.
Application key permission: quarantines: write.
test_state_id string <uuid> required repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
Link to where the fix of the test is tracked, such as an issue in your issue tracker. Must be an http or https URL. null removes the link.
200 Successful Response
Unique identifier of the test state.
Fully qualified name of the test.
Stable identifier of the test, derived from its name. Identical across every state of the same test and matches the test_id filter on the list endpoint.
The state the test is in for this scope.
quarantined skippedFree-form reason recorded when the test was put in this state.
Link to where the fix of the test is tracked, such as an issue. null when none was given.
Branch this state applies to. null means every branch.
Pipeline this state applies to. null means every pipeline.
Job this state applies to. null means every job.
UTC timestamp when the test was put in this state.
How the test got this state: manual (user action) or auto (set by Mergify).
manual autoHealth of the test, or null when it has no recent runs.
Deprecated: read health_status. True when recent runs of this test are healthy.
For the quarantined state: true when Mergify unquarantines the test once it recovers.
Example Response
{
"id": "string",
"test_name": "string",
"test_id": "string",
"state": "quarantined",
"reason": "string",
"issue_url": "string",
"branch_name": "string",
"pipeline_name": "string",
"job_name": "string",
"created_at": "2024-01-15T09:00:00Z",
"source": "manual",
"health_status": "healthy",
"is_recovered": true,
"unquarantine_when_healthy": true
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, ci_insights_quarantine: Test Engine Quarantine.REPOSITORY_WRITE_ROLE_REQUIRED: The caller has read access to this private repository, not write access. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_STATE_NOT_FOUND: No test state of this ID exists in the repository.
Body: APIErrorBody
Example Request
curl -X PATCH "https://api.mergify.com/v1/ci/:owner/repositories/:repository/test-states/:test_state_id" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"issue_url": "string"
}' Remove a test state #
/ci/{owner}/repositories/{repository}/test-states/{test_state_id} Take a test out of a state, by the test state's ID.
Application key permission: quarantines: write.
test_state_id string <uuid> required repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, ci_insights_quarantine: Test Engine Quarantine.REPOSITORY_WRITE_ROLE_REQUIRED: The caller has read access to this private repository, not write access. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_STATE_NOT_FOUND: No test state of this ID exists in the repository.
Body: APIErrorBody
Example Request
curl -X DELETE "https://api.mergify.com/v1/ci/:owner/repositories/:repository/test-states/:test_state_id" \
-H "Authorization: Bearer <token>" Get what Fail First did in a batch's bisection #
/ci/{owner}/repositories/{repository}/test-selection/batches/{batch_id}/failure-first When a batch fails, the merge queue retests smaller splits of it, called sub-batches, to find the pull request that broke it. In each sub-batch, Fail First asks a job to run the tests it failed in the step above before the others, and the job stops early when one of them fails again. The response lists the jobs of the batch's latest run that failed tests, and for each sub-batch named in sub_batch_id, the jobs asked to run tests first and what their runs did with them.
Application key permission: test_selection: read.
batch_id string <uuid> required repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
sub_batch_id string <uuid>[] A sub-batch of the bisection, as the queue status names it. Repeat for each.
200 Successful Response
The ID of the batch being bisected.
How many jobs failed tests, those not listed included.
Example Response
{
"batch_id": "string",
"failed_jobs": [
{
"pipeline_name": "string",
"job_name": "string",
"failing_tests": null,
"failing_test_count": 0
}
],
"failed_job_count": 0,
"sub_batches": [
{
"batch_id": "string",
"jobs": null,
"job_count": 0
}
]
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/test-selection/batches/:batch_id/failure-first" \
-H "Authorization: Bearer <token>" Get whether Fail First was served on a repository #
/ci/{owner}/repositories/{repository}/test-selection/failure-first Whether Fail First was served on the repository over the last 30 days. When a batch fails, the merge queue retests smaller splits of it, called bisection steps, to find the pull request that broke it. In each step, Fail First asks a job to run the tests that already failed before the others, and the job stops early when one of them fails again. The response says whether a job was asked in that period, in state.
Application key permission: test_selection: read.
repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
200 Successful Response
active: since since, Mergify asked at least one job of a bisection step to run its failed tests first. It does not say the job did: a job on a Mergify plugin release that does not apply Fail First keeps its usual order. not_served: no job was asked. Possible reasons: the merge queue split no failed batch, the jobs of its steps had no failed tests known by name, or no job uses the Mergify plugin for its test framework. See https://docs.mergify.com/merge-queue/batches/fail-first for what a job needs, and contact Mergify Support if your jobs have it and a failed batch still gets not_served.
not_served activeThe start of the period state covers.
Example Response
{
"state": "not_served",
"since": "2024-01-15T09:00:00Z"
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/test-selection/failure-first" \
-H "Authorization: Bearer <token>" Get a single test stat as a time series #
/ci/{owner}/repositories/{repository}/tests/stats/{stat} Return one test stat with a window summary value and a per-day value_over_time series of failed executions over the last 30 UTC days, today included. For failed_executions, value is the sum of that series.
Application key permission: tests: read.
stat "total_tests" | "healthy_tests" | "broken_tests" | "flaky_tests" | "dormant_tests" | "failed_executions" | "median_test_run_duration" required repository string required The name of the repository
min length: 1 · max length: 100 · pattern: ^[\w\-\.]+$
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
test_name string[] The test name to filter on
test_name_exclude string[] The test name to exclude
job_name string[] The job name to filter on
job_name_exclude string[] The job name to exclude
pipeline_name string[] The pipeline name to filter on
pipeline_name_exclude string[] The pipeline name to exclude
failed_executions_impact ("low" | "medium" | "high")[] The failed executions impact to filter on
failed_executions_impact_exclude ("low" | "medium" | "high")[] The failed executions impact to exclude
branch_name string 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.
min length: 1 · max length: 255
200 Successful Response
total_tests healthy_tests broken_tests flaky_tests dormant_tests failed_executions median_test_run_durationExample Response
{
"stat": "total_tests",
"value": 0,
"value_over_time": [
{
"start": "2024-01-15T09:00:00Z",
"end": "2024-01-15T09:00:00Z",
"value": 0
}
]
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
TEST_BRANCH_NOT_TRACKED: The repository does not track its tests on branch_name, or on its default branch when branch_name is left out.
Body: APIErrorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/repositories/:repository/tests/stats/:stat" \
-H "Authorization: Bearer <token>" Error response bodies #
An endpoint lists each error status it returns and links to the body that comes with it.
APIVersionUnknownBody
ACTIVITY_LOG_METADATA_FILTER_NOT_INDEXED API_VERSION_NOT_NEWER API_VERSION_ROLLBACK_UNAVAILABLE API_VERSION_UNKNOWN APPLICATION_KEY_EXPIRED APPLICATION_KEY_REFUSED AUTO_QUARANTINE_CONFIG_NOT_FOUND CI_ADMIN_ROLE_REQUIRED CI_ID_TOKEN_AUDIENCE_REFUSED CI_ID_TOKEN_EXCHANGE_NOT_FOUND CI_ID_TOKEN_EXPIRED CI_ID_TOKEN_INVALID CI_ID_TOKEN_ISSUER_REFUSED CI_ID_TOKEN_ISSUER_UNAVAILABLE CI_ID_TOKEN_NO_MATCHING_TRUST_POLICY CI_ID_TOKEN_NO_TRUST_POLICY CI_ID_TOKEN_REPOSITORY_NOT_INSTALLED CI_TOKEN_REFUSED CI_TOKEN_SCOPES_TARGET_REFUSED CI_TRACES_UPLOAD_UNUSABLE CI_TRUST_POLICY_GRANT_REFUSED CI_TRUST_POLICY_LIMIT_REACHED CI_TRUST_POLICY_NAME_TAKEN CI_TRUST_POLICY_NOT_FOUND CI_TRUST_POLICY_REPOSITORY_UNKNOWN COMMAND_RESTRICTED CONFIGURATION_BRANCH_REFUSED CONFIGURATION_GITHUB_APP_ACCESS_REQUIRED CONFIGURATION_INVALID CONFIGURATION_REFUSED_BY_REPOSITORY_RULES CONFIGURATION_SIGNED_COMMITS_REQUIRED DEFAULT_BRANCH_NOT_FOUND FLAKY_DETECTION_NOT_CONFIGURED GITHUB_ACCOUNT_SUSPENDED GITHUB_APP_ACCESS_LOST GITHUB_RATE_LIMITED GITHUB_TOKEN_NOT_ACCEPTED GITHUB_TWO_FACTOR_AUTHENTICATION_NONCOMPLIANT GITHUB_UPSTREAM_REQUEST_FORBIDDEN GITHUB_UPSTREAM_REQUEST_REJECTED GITHUB_UPSTREAM_UNAVAILABLE INTEGRATION_NOT_CONFIGURED INVALID_CURSOR IP_ALLOW_LIST_NOT_CONFIGURED KNOWN_TESTS_BEING_COMPUTED KNOWN_TESTS_NOT_SERVED MERGE_QUEUE_DISABLED MERGE_QUEUE_POLICY_INVALID_PATTERN MERGE_QUEUE_POLICY_LIMIT_REACHED MERGE_QUEUE_POLICY_NAME_TAKEN MERGE_QUEUE_POLICY_NOT_FOUND MERGE_QUEUE_SETTING_INVALID_BRANCH_PATTERN MERGE_QUEUE_SETTING_NOT_AVAILABLE MERGE_QUEUE_SETTING_TOO_MANY_BRANCH_PATTERNS NOT_GENERALLY_AVAILABLE NO_LOGIN_IN_PROGRESS ORGANIZATION_MEMBERS_ONLY PULL_REQUEST_ALREADY_QUEUED PULL_REQUEST_LEAVING_QUEUE PULL_REQUEST_NOT_FOUND PULL_REQUEST_NOT_QUEUEABLE PULL_REQUEST_NOT_QUEUED PULL_REQUEST_QUEUE_REQUESTED PULL_REQUEST_UNREADABLE REPOSITORY_ADMIN_ROLE_REQUIRED REPOSITORY_READ_ROLE_REQUIRED REPOSITORY_WRITE_ROLE_REQUIRED RETRY_RULE_NOT_FOUND ROLE_ALREADY_GRANTED ROLE_CHANGE_REFUSED ROLE_GRANTEE_REFUSED ROLE_GRANT_NOT_FOUND SAML_ENFORCEMENT_NOT_AUTHORIZED SCHEDULED_FREEZE_NOT_FOUND SCOPES_COVERAGE_GLOB_TOO_COSTLY SCOPES_COVERAGE_MANUAL_SOURCE SCOPES_COVERAGE_PATH_NOT_FOUND SCOPES_COVERAGE_UNAVAILABLE SETTING_MANAGED_BY_ENV SETUP_ALREADY_DONE SETUP_TOKEN_MISMATCH STAFF_SESSION_REFUSED STATISTICS_SCOPE_PERIOD_TOO_LARGE SUBSCRIPTION_API_UNAVAILABLE SUBSCRIPTION_FEATURE_REQUIRED SUBSCRIPTION_INACTIVE SUBSCRIPTION_TOKEN_INVALID TEST_ALREADY_QUARANTINED TEST_BRANCH_NOT_TRACKED TEST_FAILURE_NOT_FOUND TEST_NOT_FOUND TEST_RESULTS_INGESTION_NOT_ENABLED TEST_RETRY_NOT_CONFIGURED TEST_STATE_NOT_FOUND TEST_STATE_OVERLAPExample Response
{
"detail": "string",
"error_code": "API_VERSION_UNKNOWN",
"documentation_url": "string",
"served_versions": [
"string"
]
}
CredentialRefusedBody
ACTIVITY_LOG_METADATA_FILTER_NOT_INDEXED API_VERSION_NOT_NEWER API_VERSION_ROLLBACK_UNAVAILABLE API_VERSION_UNKNOWN APPLICATION_KEY_EXPIRED APPLICATION_KEY_REFUSED AUTO_QUARANTINE_CONFIG_NOT_FOUND CI_ADMIN_ROLE_REQUIRED CI_ID_TOKEN_AUDIENCE_REFUSED CI_ID_TOKEN_EXCHANGE_NOT_FOUND CI_ID_TOKEN_EXPIRED CI_ID_TOKEN_INVALID CI_ID_TOKEN_ISSUER_REFUSED CI_ID_TOKEN_ISSUER_UNAVAILABLE CI_ID_TOKEN_NO_MATCHING_TRUST_POLICY CI_ID_TOKEN_NO_TRUST_POLICY CI_ID_TOKEN_REPOSITORY_NOT_INSTALLED CI_TOKEN_REFUSED CI_TOKEN_SCOPES_TARGET_REFUSED CI_TRACES_UPLOAD_UNUSABLE CI_TRUST_POLICY_GRANT_REFUSED CI_TRUST_POLICY_LIMIT_REACHED CI_TRUST_POLICY_NAME_TAKEN CI_TRUST_POLICY_NOT_FOUND CI_TRUST_POLICY_REPOSITORY_UNKNOWN COMMAND_RESTRICTED CONFIGURATION_BRANCH_REFUSED CONFIGURATION_GITHUB_APP_ACCESS_REQUIRED CONFIGURATION_INVALID CONFIGURATION_REFUSED_BY_REPOSITORY_RULES CONFIGURATION_SIGNED_COMMITS_REQUIRED DEFAULT_BRANCH_NOT_FOUND FLAKY_DETECTION_NOT_CONFIGURED GITHUB_ACCOUNT_SUSPENDED GITHUB_APP_ACCESS_LOST GITHUB_RATE_LIMITED GITHUB_TOKEN_NOT_ACCEPTED GITHUB_TWO_FACTOR_AUTHENTICATION_NONCOMPLIANT GITHUB_UPSTREAM_REQUEST_FORBIDDEN GITHUB_UPSTREAM_REQUEST_REJECTED GITHUB_UPSTREAM_UNAVAILABLE INTEGRATION_NOT_CONFIGURED INVALID_CURSOR IP_ALLOW_LIST_NOT_CONFIGURED KNOWN_TESTS_BEING_COMPUTED KNOWN_TESTS_NOT_SERVED MERGE_QUEUE_DISABLED MERGE_QUEUE_POLICY_INVALID_PATTERN MERGE_QUEUE_POLICY_LIMIT_REACHED MERGE_QUEUE_POLICY_NAME_TAKEN MERGE_QUEUE_POLICY_NOT_FOUND MERGE_QUEUE_SETTING_INVALID_BRANCH_PATTERN MERGE_QUEUE_SETTING_NOT_AVAILABLE MERGE_QUEUE_SETTING_TOO_MANY_BRANCH_PATTERNS NOT_GENERALLY_AVAILABLE NO_LOGIN_IN_PROGRESS ORGANIZATION_MEMBERS_ONLY PULL_REQUEST_ALREADY_QUEUED PULL_REQUEST_LEAVING_QUEUE PULL_REQUEST_NOT_FOUND PULL_REQUEST_NOT_QUEUEABLE PULL_REQUEST_NOT_QUEUED PULL_REQUEST_QUEUE_REQUESTED PULL_REQUEST_UNREADABLE REPOSITORY_ADMIN_ROLE_REQUIRED REPOSITORY_READ_ROLE_REQUIRED REPOSITORY_WRITE_ROLE_REQUIRED RETRY_RULE_NOT_FOUND ROLE_ALREADY_GRANTED ROLE_CHANGE_REFUSED ROLE_GRANTEE_REFUSED ROLE_GRANT_NOT_FOUND SAML_ENFORCEMENT_NOT_AUTHORIZED SCHEDULED_FREEZE_NOT_FOUND SCOPES_COVERAGE_GLOB_TOO_COSTLY SCOPES_COVERAGE_MANUAL_SOURCE SCOPES_COVERAGE_PATH_NOT_FOUND SCOPES_COVERAGE_UNAVAILABLE SETTING_MANAGED_BY_ENV SETUP_ALREADY_DONE SETUP_TOKEN_MISMATCH STAFF_SESSION_REFUSED STATISTICS_SCOPE_PERIOD_TOO_LARGE SUBSCRIPTION_API_UNAVAILABLE SUBSCRIPTION_FEATURE_REQUIRED SUBSCRIPTION_INACTIVE SUBSCRIPTION_TOKEN_INVALID TEST_ALREADY_QUARANTINED TEST_BRANCH_NOT_TRACKED TEST_FAILURE_NOT_FOUND TEST_NOT_FOUND TEST_RESULTS_INGESTION_NOT_ENABLED TEST_RETRY_NOT_CONFIGURED TEST_STATE_NOT_FOUND TEST_STATE_OVERLAPExample Response
{
"detail": "string",
"error_code": "APPLICATION_KEY_REFUSED",
"documentation_url": "string",
"accepted_permissions": [
{
"resource": "merge_queue",
"access": "read"
}
]
}
APIErrorBody
ACTIVITY_LOG_METADATA_FILTER_NOT_INDEXED API_VERSION_NOT_NEWER API_VERSION_ROLLBACK_UNAVAILABLE API_VERSION_UNKNOWN APPLICATION_KEY_EXPIRED APPLICATION_KEY_REFUSED AUTO_QUARANTINE_CONFIG_NOT_FOUND CI_ADMIN_ROLE_REQUIRED CI_ID_TOKEN_AUDIENCE_REFUSED CI_ID_TOKEN_EXCHANGE_NOT_FOUND CI_ID_TOKEN_EXPIRED CI_ID_TOKEN_INVALID CI_ID_TOKEN_ISSUER_REFUSED CI_ID_TOKEN_ISSUER_UNAVAILABLE CI_ID_TOKEN_NO_MATCHING_TRUST_POLICY CI_ID_TOKEN_NO_TRUST_POLICY CI_ID_TOKEN_REPOSITORY_NOT_INSTALLED CI_TOKEN_REFUSED CI_TOKEN_SCOPES_TARGET_REFUSED CI_TRACES_UPLOAD_UNUSABLE CI_TRUST_POLICY_GRANT_REFUSED CI_TRUST_POLICY_LIMIT_REACHED CI_TRUST_POLICY_NAME_TAKEN CI_TRUST_POLICY_NOT_FOUND CI_TRUST_POLICY_REPOSITORY_UNKNOWN COMMAND_RESTRICTED CONFIGURATION_BRANCH_REFUSED CONFIGURATION_GITHUB_APP_ACCESS_REQUIRED CONFIGURATION_INVALID CONFIGURATION_REFUSED_BY_REPOSITORY_RULES CONFIGURATION_SIGNED_COMMITS_REQUIRED DEFAULT_BRANCH_NOT_FOUND FLAKY_DETECTION_NOT_CONFIGURED GITHUB_ACCOUNT_SUSPENDED GITHUB_APP_ACCESS_LOST GITHUB_RATE_LIMITED GITHUB_TOKEN_NOT_ACCEPTED GITHUB_TWO_FACTOR_AUTHENTICATION_NONCOMPLIANT GITHUB_UPSTREAM_REQUEST_FORBIDDEN GITHUB_UPSTREAM_REQUEST_REJECTED GITHUB_UPSTREAM_UNAVAILABLE INTEGRATION_NOT_CONFIGURED INVALID_CURSOR IP_ALLOW_LIST_NOT_CONFIGURED KNOWN_TESTS_BEING_COMPUTED KNOWN_TESTS_NOT_SERVED MERGE_QUEUE_DISABLED MERGE_QUEUE_POLICY_INVALID_PATTERN MERGE_QUEUE_POLICY_LIMIT_REACHED MERGE_QUEUE_POLICY_NAME_TAKEN MERGE_QUEUE_POLICY_NOT_FOUND MERGE_QUEUE_SETTING_INVALID_BRANCH_PATTERN MERGE_QUEUE_SETTING_NOT_AVAILABLE MERGE_QUEUE_SETTING_TOO_MANY_BRANCH_PATTERNS NOT_GENERALLY_AVAILABLE NO_LOGIN_IN_PROGRESS ORGANIZATION_MEMBERS_ONLY PULL_REQUEST_ALREADY_QUEUED PULL_REQUEST_LEAVING_QUEUE PULL_REQUEST_NOT_FOUND PULL_REQUEST_NOT_QUEUEABLE PULL_REQUEST_NOT_QUEUED PULL_REQUEST_QUEUE_REQUESTED PULL_REQUEST_UNREADABLE REPOSITORY_ADMIN_ROLE_REQUIRED REPOSITORY_READ_ROLE_REQUIRED REPOSITORY_WRITE_ROLE_REQUIRED RETRY_RULE_NOT_FOUND ROLE_ALREADY_GRANTED ROLE_CHANGE_REFUSED ROLE_GRANTEE_REFUSED ROLE_GRANT_NOT_FOUND SAML_ENFORCEMENT_NOT_AUTHORIZED SCHEDULED_FREEZE_NOT_FOUND SCOPES_COVERAGE_GLOB_TOO_COSTLY SCOPES_COVERAGE_MANUAL_SOURCE SCOPES_COVERAGE_PATH_NOT_FOUND SCOPES_COVERAGE_UNAVAILABLE SETTING_MANAGED_BY_ENV SETUP_ALREADY_DONE SETUP_TOKEN_MISMATCH STAFF_SESSION_REFUSED STATISTICS_SCOPE_PERIOD_TOO_LARGE SUBSCRIPTION_API_UNAVAILABLE SUBSCRIPTION_FEATURE_REQUIRED SUBSCRIPTION_INACTIVE SUBSCRIPTION_TOKEN_INVALID TEST_ALREADY_QUARANTINED TEST_BRANCH_NOT_TRACKED TEST_FAILURE_NOT_FOUND TEST_NOT_FOUND TEST_RESULTS_INGESTION_NOT_ENABLED TEST_RETRY_NOT_CONFIGURED TEST_STATE_NOT_FOUND TEST_STATE_OVERLAPExample Response
{
"detail": "string",
"error_code": "TEST_BRANCH_NOT_TRACKED",
"documentation_url": "string"
}
SubscriptionFeatureRequiredBody
ACTIVITY_LOG_METADATA_FILTER_NOT_INDEXED API_VERSION_NOT_NEWER API_VERSION_ROLLBACK_UNAVAILABLE API_VERSION_UNKNOWN APPLICATION_KEY_EXPIRED APPLICATION_KEY_REFUSED AUTO_QUARANTINE_CONFIG_NOT_FOUND CI_ADMIN_ROLE_REQUIRED CI_ID_TOKEN_AUDIENCE_REFUSED CI_ID_TOKEN_EXCHANGE_NOT_FOUND CI_ID_TOKEN_EXPIRED CI_ID_TOKEN_INVALID CI_ID_TOKEN_ISSUER_REFUSED CI_ID_TOKEN_ISSUER_UNAVAILABLE CI_ID_TOKEN_NO_MATCHING_TRUST_POLICY CI_ID_TOKEN_NO_TRUST_POLICY CI_ID_TOKEN_REPOSITORY_NOT_INSTALLED CI_TOKEN_REFUSED CI_TOKEN_SCOPES_TARGET_REFUSED CI_TRACES_UPLOAD_UNUSABLE CI_TRUST_POLICY_GRANT_REFUSED CI_TRUST_POLICY_LIMIT_REACHED CI_TRUST_POLICY_NAME_TAKEN CI_TRUST_POLICY_NOT_FOUND CI_TRUST_POLICY_REPOSITORY_UNKNOWN COMMAND_RESTRICTED CONFIGURATION_BRANCH_REFUSED CONFIGURATION_GITHUB_APP_ACCESS_REQUIRED CONFIGURATION_INVALID CONFIGURATION_REFUSED_BY_REPOSITORY_RULES CONFIGURATION_SIGNED_COMMITS_REQUIRED DEFAULT_BRANCH_NOT_FOUND FLAKY_DETECTION_NOT_CONFIGURED GITHUB_ACCOUNT_SUSPENDED GITHUB_APP_ACCESS_LOST GITHUB_RATE_LIMITED GITHUB_TOKEN_NOT_ACCEPTED GITHUB_TWO_FACTOR_AUTHENTICATION_NONCOMPLIANT GITHUB_UPSTREAM_REQUEST_FORBIDDEN GITHUB_UPSTREAM_REQUEST_REJECTED GITHUB_UPSTREAM_UNAVAILABLE INTEGRATION_NOT_CONFIGURED INVALID_CURSOR IP_ALLOW_LIST_NOT_CONFIGURED KNOWN_TESTS_BEING_COMPUTED KNOWN_TESTS_NOT_SERVED MERGE_QUEUE_DISABLED MERGE_QUEUE_POLICY_INVALID_PATTERN MERGE_QUEUE_POLICY_LIMIT_REACHED MERGE_QUEUE_POLICY_NAME_TAKEN MERGE_QUEUE_POLICY_NOT_FOUND MERGE_QUEUE_SETTING_INVALID_BRANCH_PATTERN MERGE_QUEUE_SETTING_NOT_AVAILABLE MERGE_QUEUE_SETTING_TOO_MANY_BRANCH_PATTERNS NOT_GENERALLY_AVAILABLE NO_LOGIN_IN_PROGRESS ORGANIZATION_MEMBERS_ONLY PULL_REQUEST_ALREADY_QUEUED PULL_REQUEST_LEAVING_QUEUE PULL_REQUEST_NOT_FOUND PULL_REQUEST_NOT_QUEUEABLE PULL_REQUEST_NOT_QUEUED PULL_REQUEST_QUEUE_REQUESTED PULL_REQUEST_UNREADABLE REPOSITORY_ADMIN_ROLE_REQUIRED REPOSITORY_READ_ROLE_REQUIRED REPOSITORY_WRITE_ROLE_REQUIRED RETRY_RULE_NOT_FOUND ROLE_ALREADY_GRANTED ROLE_CHANGE_REFUSED ROLE_GRANTEE_REFUSED ROLE_GRANT_NOT_FOUND SAML_ENFORCEMENT_NOT_AUTHORIZED SCHEDULED_FREEZE_NOT_FOUND SCOPES_COVERAGE_GLOB_TOO_COSTLY SCOPES_COVERAGE_MANUAL_SOURCE SCOPES_COVERAGE_PATH_NOT_FOUND SCOPES_COVERAGE_UNAVAILABLE SETTING_MANAGED_BY_ENV SETUP_ALREADY_DONE SETUP_TOKEN_MISMATCH STAFF_SESSION_REFUSED STATISTICS_SCOPE_PERIOD_TOO_LARGE SUBSCRIPTION_API_UNAVAILABLE SUBSCRIPTION_FEATURE_REQUIRED SUBSCRIPTION_INACTIVE SUBSCRIPTION_TOKEN_INVALID TEST_ALREADY_QUARANTINED TEST_BRANCH_NOT_TRACKED TEST_FAILURE_NOT_FOUND TEST_NOT_FOUND TEST_RESULTS_INGESTION_NOT_ENABLED TEST_RETRY_NOT_CONFIGURED TEST_STATE_NOT_FOUND TEST_STATE_OVERLAPci_insights_quarantine delegated_roles integration_datadog integration_slack merge_queue_scopes merge_queue_stats scheduled_freeze test_tracked_branchesExample Response
{
"detail": "string",
"error_code": "SUBSCRIPTION_FEATURE_REQUIRED",
"documentation_url": "string",
"feature": "ci_insights_quarantine"
}
InvalidCursorBody
ACTIVITY_LOG_METADATA_FILTER_NOT_INDEXED API_VERSION_NOT_NEWER API_VERSION_ROLLBACK_UNAVAILABLE API_VERSION_UNKNOWN APPLICATION_KEY_EXPIRED APPLICATION_KEY_REFUSED AUTO_QUARANTINE_CONFIG_NOT_FOUND CI_ADMIN_ROLE_REQUIRED CI_ID_TOKEN_AUDIENCE_REFUSED CI_ID_TOKEN_EXCHANGE_NOT_FOUND CI_ID_TOKEN_EXPIRED CI_ID_TOKEN_INVALID CI_ID_TOKEN_ISSUER_REFUSED CI_ID_TOKEN_ISSUER_UNAVAILABLE CI_ID_TOKEN_NO_MATCHING_TRUST_POLICY CI_ID_TOKEN_NO_TRUST_POLICY CI_ID_TOKEN_REPOSITORY_NOT_INSTALLED CI_TOKEN_REFUSED CI_TOKEN_SCOPES_TARGET_REFUSED CI_TRACES_UPLOAD_UNUSABLE CI_TRUST_POLICY_GRANT_REFUSED CI_TRUST_POLICY_LIMIT_REACHED CI_TRUST_POLICY_NAME_TAKEN CI_TRUST_POLICY_NOT_FOUND CI_TRUST_POLICY_REPOSITORY_UNKNOWN COMMAND_RESTRICTED CONFIGURATION_BRANCH_REFUSED CONFIGURATION_GITHUB_APP_ACCESS_REQUIRED CONFIGURATION_INVALID CONFIGURATION_REFUSED_BY_REPOSITORY_RULES CONFIGURATION_SIGNED_COMMITS_REQUIRED DEFAULT_BRANCH_NOT_FOUND FLAKY_DETECTION_NOT_CONFIGURED GITHUB_ACCOUNT_SUSPENDED GITHUB_APP_ACCESS_LOST GITHUB_RATE_LIMITED GITHUB_TOKEN_NOT_ACCEPTED GITHUB_TWO_FACTOR_AUTHENTICATION_NONCOMPLIANT GITHUB_UPSTREAM_REQUEST_FORBIDDEN GITHUB_UPSTREAM_REQUEST_REJECTED GITHUB_UPSTREAM_UNAVAILABLE INTEGRATION_NOT_CONFIGURED INVALID_CURSOR IP_ALLOW_LIST_NOT_CONFIGURED KNOWN_TESTS_BEING_COMPUTED KNOWN_TESTS_NOT_SERVED MERGE_QUEUE_DISABLED MERGE_QUEUE_POLICY_INVALID_PATTERN MERGE_QUEUE_POLICY_LIMIT_REACHED MERGE_QUEUE_POLICY_NAME_TAKEN MERGE_QUEUE_POLICY_NOT_FOUND MERGE_QUEUE_SETTING_INVALID_BRANCH_PATTERN MERGE_QUEUE_SETTING_NOT_AVAILABLE MERGE_QUEUE_SETTING_TOO_MANY_BRANCH_PATTERNS NOT_GENERALLY_AVAILABLE NO_LOGIN_IN_PROGRESS ORGANIZATION_MEMBERS_ONLY PULL_REQUEST_ALREADY_QUEUED PULL_REQUEST_LEAVING_QUEUE PULL_REQUEST_NOT_FOUND PULL_REQUEST_NOT_QUEUEABLE PULL_REQUEST_NOT_QUEUED PULL_REQUEST_QUEUE_REQUESTED PULL_REQUEST_UNREADABLE REPOSITORY_ADMIN_ROLE_REQUIRED REPOSITORY_READ_ROLE_REQUIRED REPOSITORY_WRITE_ROLE_REQUIRED RETRY_RULE_NOT_FOUND ROLE_ALREADY_GRANTED ROLE_CHANGE_REFUSED ROLE_GRANTEE_REFUSED ROLE_GRANT_NOT_FOUND SAML_ENFORCEMENT_NOT_AUTHORIZED SCHEDULED_FREEZE_NOT_FOUND SCOPES_COVERAGE_GLOB_TOO_COSTLY SCOPES_COVERAGE_MANUAL_SOURCE SCOPES_COVERAGE_PATH_NOT_FOUND SCOPES_COVERAGE_UNAVAILABLE SETTING_MANAGED_BY_ENV SETUP_ALREADY_DONE SETUP_TOKEN_MISMATCH STAFF_SESSION_REFUSED STATISTICS_SCOPE_PERIOD_TOO_LARGE SUBSCRIPTION_API_UNAVAILABLE SUBSCRIPTION_FEATURE_REQUIRED SUBSCRIPTION_INACTIVE SUBSCRIPTION_TOKEN_INVALID TEST_ALREADY_QUARANTINED TEST_BRANCH_NOT_TRACKED TEST_FAILURE_NOT_FOUND TEST_NOT_FOUND TEST_RESULTS_INGESTION_NOT_ENABLED TEST_RETRY_NOT_CONFIGURED TEST_STATE_NOT_FOUND TEST_STATE_OVERLAPExample Response
{
"detail": {
"message": "string",
"cursor": "string"
},
"error_code": "INVALID_CURSOR"
}
Was this page helpful?
Thanks for your feedback!