Statistics

Access merge queue and CI performance statistics.


Time to merge statistics for every queue #

GET /repos/{owner}/{repository}/stats/time_to_merge
Deprecated

Get the average time to merge statistics, in seconds, for all the queues in the repository

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

at string <date-time>

Retrieve the time to merge at this timestamp: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused.

branch string

The name of the branch

200 Successful Response
queuesTimeToMergePerQueue[]required

The time to merge data for each queue

queue_namestringrequired

The name of the queue

time_to_mergeTimeToMergeResponserequired

The time to merge data for the queue

meannumber | nullrequired
mediannumber | nullrequired
Example Response
                        [
  {
    "queues": [
      {}
    ]
  }
]
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 CONFIGURATION_INVALID: The repository's Mergify configuration is invalid. extended_repository names the repository its extends points to when the error is in that repository's configuration file, and is null otherwise, including when the error only appears once the two configurations are merged. The route's other 422s carry no error_code.

Body: ConfigurationInvalidBody

Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/time_to_merge" \
  -H "Authorization: Bearer <token>"

Get the queue checks outcome for the repository #

GET /repos/{owner}/{repository}/stats/merge_queue_checks_outcome
Deprecated

Statuses describing the state in which the pull requests have left the queue(s). Counted once per pull request a check carried: a batch of five pull requests yields five outcomes for one CI run. ci_runs counts CI runs once each, with how each ended.

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsChecksOutcomeGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsQueueChecksOutcomerequired
BASE_BRANCH_CHANGEDinteger

The pull request base branch has changed

BASE_BRANCH_MISSINGinteger

The base branch does not exist anymore

BATCH_MAX_FAILURE_RESOLUTION_ATTEMPTSinteger

The maximum batch failure resolution attempts has been reached

BATCH_REBUILTinteger

The batch was torn down to be rebuilt

BATCH_SCOPES_CHANGEDinteger

The batch has been recomposed because a pull request's scopes changed

BRANCH_UPDATE_FAILEDinteger

The pull request can't be updated for security reasons

CHECKS_FAILEDinteger

The checks for the queued pull request have failed

CHECKS_INTERRUPTEDinteger

The checks for the queued pull request were cancelled before producing a result

CHECKS_TIMEOUTinteger

The checks for the queued pull request have timed out

DROPPED_BY_BISECTION_ELIMINATIONinteger

The pull request was dropped untested when batch bisection isolated the failure to other pull requests

CONFLICT_WITH_BASE_BRANCHinteger

The pull request conflicts with the base branch

CONFLICT_WITH_PULL_AHEADinteger

The pull request conflicts with at least one pull request ahead in queue

DRAFT_PULL_REQUEST_CHANGEDinteger

New commits have been added to the draft pull request that were not made by Mergify

BATCH_PULL_REQUEST_CLOSEDinteger

The batch pull request has been closed

INCOMPATIBILITY_WITH_BRANCH_PROTECTIONSinteger

The pull request cannot be checked because of an incompatibility with branch protections

MERGE_QUEUE_RESETinteger

The merge queue has been reset

PR_AHEAD_DEQUEUEDinteger

A pull request ahead in the queue has been dequeued

PR_IN_SAME_BATCH_DEQUEUEDinteger

A pull request in the same batch has been dequeued

BATCH_AHEAD_FAILEDinteger

A pull request ahead in the queue failed to get merged

BATCH_AHEAD_BRANCH_EDITEDinteger

The branch of a batch ahead in the queue was edited, so this batch has been recomposed on top of it

BATCH_AHEAD_REBUILTinteger

A batch ahead in the queue was torn down to be rebuilt

PR_CHECKS_STOPPED_BECAUSE_MERGE_QUEUE_PAUSEinteger

The checks have been interrupted because the merge queue is paused on this repository

PR_DEQUEUEDinteger

Pull request has been dequeued

PR_DEQUEUED_FROM_PARTITIONinteger

Pull request has been dequeued from a partition

PR_UNEXPECTEDLY_FAILED_TO_MERGEinteger

Pull request unexpectedly failed to get merged

PR_WITH_HIGHER_PRIORITY_QUEUEDinteger

A pull request with a higher priority has been queued

PULL_REQUEST_UPDATEDinteger

The pull request has been unexpectedly updated

QUEUE_RULE_MISSINGinteger

The queue rules are missing because of a configuration change

SPECULATIVE_CHECK_NUMBER_REDUCEDinteger

The number of speculative checks, in the queue rules, has been reduced

SUCCESSinteger

Successfully merged the pull request

PR_MANUALLY_MERGEDinteger

The pull request has been manually merged

DRAFT_PULL_REQUEST_CREATION_FAILEDinteger

The draft pull request cannot be created

DRAFT_PULL_REQUEST_CREATION_BRANCH_NOT_INDEXEDinteger

The draft pull request cannot be created because GitHub has not indexed the branch yet

CONFIGURATION_CHANGEDinteger

The configuration has changed

UNPROCESSABLE_PULL_REQUESTinteger

The pull request could not be processed by Mergify

PR_MANUALLY_DEQUEUEDinteger

The pull request has been manually removed from the queue

STACK_PREDECESSOR_DEQUEUEDinteger

The pull request has been dequeued because its stack predecessor was dequeued

INTERMEDIATE_RESULTS_SKIPPEDinteger

The pull request intermediate results have been skipped during batch promotion

CHECKS_RETRIEDinteger

The checks have failed and are being retried

SCHEDULED_FREEZE_STATUS_CHANGEDinteger

The batch has been split because a scheduled freeze changed the freeze status of its pull requests

SCHEDULE_BLOCKED_AHEAD_YIELDEDinteger

A pull request ahead or in the same batch was waiting for its merge schedule, so it yielded its position, or the check slot it was using ahead of time, to let ready pull requests merge first

BASE_REF_ALIGNMENT_TIMEOUTinteger

The stacked pull request's base branch could not be retargeted onto the queue base branch and was dequeued

GITHUB_STACKED_PULL_REQUEST_MERGE_UNSUPPORTEDinteger

The pull request is a GitHub-native stacked pull request, which GitHub does not allow merging through the API, and was dequeued

GITHUB_WORKFLOWS_PERMISSION_MISSINGinteger

GitHub refused to write the pull request's workflow changes because Mergify lacks the workflows permission, and it was dequeued

GITHUB_REBASE_MERGE_REFUSEDinteger

GitHub refuses to rebase-merge the pull request, and it was dequeued

Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": {}
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/merge_queue_checks_outcome" \
  -H "Authorization: Bearer <token>"

Get the count of queue checks outcomes #

GET /repos/{owner}/{repository}/stats/queues_checks_outcome_count

Statuses describing the state in which the pull requests have left the queue(s), grouped by time intervals. Counted once per pull request a check carried: a batch of five pull requests yields five outcomes for one CI run. ci_runs counts CI runs once each, with how each ended.

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsChecksOutcomeByIntervalGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsCheckOutcomeInInterval[]required
startstring <date-time>required
endstring <date-time>required
check_outcomestringrequired
countintegerrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/queues_checks_outcome_count" \
  -H "Authorization: Bearer <token>"

Get the count of pull requests entering the queues #

GET /repos/{owner}/{repository}/stats/queues_entered_count

Queues pull requests entered by intervals of time

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsEnteredGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsEnteredInInterval[]required
startstring <date-time>required
endstring <date-time>required
enteredintegerrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/queues_entered_count" \
  -H "Authorization: Bearer <token>"

Get the count of pull requests merged by queues #

GET /repos/{owner}/{repository}/stats/queues_merged_count

Queues pull requests merged by intervals of time

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsMergedGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsMergedInInterval[]required
startstring <date-time>required
endstring <date-time>required
mergedintegerrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/queues_merged_count" \
  -H "Authorization: Bearer <token>"

Get the average CI runtime #

GET /repos/{owner}/{repository}/stats/average_ci_runtime

Runtime of the CI the merge queue runs, by intervals of time. A run can carry pull requests of several priority rules, so no group names one, and a priority rule filter keeps the runs carrying one of its pull requests.

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsCIRuntimeGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsRuntimeInInterval[]required
startstring <date-time>required
endstring <date-time>required
runtimenumberrequired
sum_runtimenumberrequired
count_runtimeintegerrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/average_ci_runtime" \
  -H "Authorization: Bearer <token>"

Get the idle queue time #

GET /repos/{owner}/{repository}/stats/idle_queue_time

Idle time spent in queue by the Pull Requests by intervals of time

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsIdleTimeGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsIdleTimeInInterval[]required
startstring <date-time>required
endstring <date-time>required
idle_capacitynumberrequired
idle_schedulenumberrequired
idle_freezenumberrequired
ci_runtimenumberrequired
p95_idle_capacitynumberrequired
p95_idle_schedulenumberrequired
p95_idle_freezenumberrequired
p95_ci_runtimenumberrequired
max_idle_capacitynumberrequired
max_idle_schedulenumberrequired
max_idle_freezenumberrequired
max_ci_runtimenumberrequired
sum_idle_capacitynumberrequired
sum_idle_schedulenumberrequired
sum_idle_freezenumberrequired
sum_ci_runtimenumberrequired
count_idleintegerrequired
summaryIdleTimeSummaryrequired
avg_idle_capacitynumberrequired
avg_idle_schedulenumberrequired
avg_idle_freezenumberrequired
avg_ci_runtimenumberrequired
p95_idle_capacitynumberrequired
p95_idle_schedulenumberrequired
p95_idle_freezenumberrequired
p95_ci_runtimenumberrequired
max_idle_capacitynumberrequired
max_idle_schedulenumberrequired
max_idle_freezenumberrequired
max_ci_runtimenumberrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null,
      "summary": {}
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/idle_queue_time" \
  -H "Authorization: Bearer <token>"

Get the queue time #

GET /repos/{owner}/{repository}/stats/total_queue_time

Time spent in queue by the pull requests, by intervals of time: its average, minimum, maximum, median and 95th percentile. groups splits it by base branch, queue and priority rule; overall gives it for every pull request the filters match, by interval and over the whole range. Read a median or percentile of several groups from overall: it cannot be computed from the groups' own.

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsQueueTimeGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsQueueTimeInInterval[]required
avg_queue_timenumberrequired
max_queue_timenumberrequired
min_queue_timenumberrequired
p50_queue_timenumberrequired

Median time spent in queue, in seconds; 0 when count_queue_time is 0

p95_queue_timenumberrequired

95th percentile of the time spent in queue, in seconds; 0 when count_queue_time is 0

sum_queue_timenumberrequired
count_queue_timeintegerrequired
startstring <date-time>required
endstring <date-time>required
overallQueueTimeOverallResponserequired

The statistics of every pull request the filters match, all groups together. A percentile of several groups or intervals cannot be computed from theirs, so read it here.

statsQueueTimeInInterval[]required
avg_queue_timenumberrequired
max_queue_timenumberrequired
min_queue_timenumberrequired
p50_queue_timenumberrequired

Median time spent in queue, in seconds; 0 when count_queue_time is 0

p95_queue_timenumberrequired

95th percentile of the time spent in queue, in seconds; 0 when count_queue_time is 0

sum_queue_timenumberrequired
count_queue_timeintegerrequired
startstring <date-time>required
endstring <date-time>required
summaryQueueTimeStatsrequired

The statistics over the whole range

avg_queue_timenumberrequired
max_queue_timenumberrequired
min_queue_timenumberrequired
p50_queue_timenumberrequired

Median time spent in queue, in seconds; 0 when count_queue_time is 0

p95_queue_timenumberrequired

95th percentile of the time spent in queue, in seconds; 0 when count_queue_time is 0

sum_queue_timenumberrequired
count_queue_timeintegerrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ],
  "overall": {
    "stats": [
      {}
    ],
    "summary": {
      "avg_queue_time": 0,
      "max_queue_time": 0,
      "min_queue_time": 0,
      "p50_queue_time": 0,
      "p95_queue_time": 0,
      "sum_queue_time": 0,
      "count_queue_time": 0
    }
  }
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/total_queue_time" \
  -H "Authorization: Bearer <token>"

Get the queue size #

GET /repos/{owner}/{repository}/stats/queue_size

Get the average, max and min queue size over the period by intervals of time

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsQueueSizeGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsQueueSizeInInterval[]required
startstring <date-time>required
endstring <date-time>required
avg_sizenumberrequired
max_sizeintegerrequired
min_sizeintegerrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/queue_size" \
  -H "Authorization: Bearer <token>"

Get the number of running speculative checks #

GET /repos/{owner}/{repository}/stats/running_speculative_checks

Speculative checks running on queues by intervals of time

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsRunningChecksGroupResponse[]required
base_refstringrequired
queue_namestringrequired
statsRunningChecksInInterval[]required
startstring <date-time>required
endstring <date-time>required
avg_running_checksnumberrequired
max_running_checksintegerrequired
min_running_checksintegerrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/running_speculative_checks" \
  -H "Authorization: Bearer <token>"

Get the checks batch size #

GET /repos/{owner}/{repository}/stats/batch_size

How many pull requests the merge queue's CI runs carry, by intervals of time. A run can carry pull requests of several priority rules, so no group names one, and a priority rule filter keeps the runs carrying one of its pull requests.

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsBatchSizeGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsBatchSizeInInterval[]required
startstring <date-time>required
endstring <date-time>required
avg_batch_sizenumberrequired
max_batch_sizeintegerrequired
min_batch_sizeintegerrequired
sum_batch_sizeintegerrequired
count_batch_sizeintegerrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/batch_size" \
  -H "Authorization: Bearer <token>"

Get batch bisection statistics #

GET /repos/{owner}/{repository}/stats/batch_bisection

Statistics about bisection events in the merge queue

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
startedBisectionStartGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsBisectionStartInInterval[]required
startstring <date-time>required
endstring <date-time>required
bisection_countintegerrequired
avg_depthnumberrequired
max_depthintegerrequired
avg_batch_size_before_splitnumberrequired
completedBisectionEndGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsBisectionEndInInterval[]required
startstring <date-time>required
endstring <date-time>required
bisection_completed_countintegerrequired
culprit_found_countintegerrequired
max_failure_reached_countintegerrequired
Example Response
                        {
  "started": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ],
  "completed": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/batch_bisection" \
  -H "Authorization: Bearer <token>"

Get what Fail First saved on bisections #

GET /repos/{owner}/{repository}/stats/bisection_failure_first

Bisection steps whose checks failed, the ones whose jobs ran the tests they failed in the step above first and stopped early on one, and the test time those early stops saved in seconds, by intervals of time. A step is counted in the interval its run ended in, as its jobs had reported it then: a job still running is not counted. The test time saved by a job that stopped early is the median test time of the same job over the last 30 days of bisection steps where it ran all its tests, minus its own, and 0 when its own was longer; a job that never did is left out. stopped_early_red_steps and test_time_saved are null in an interval where no step's jobs were told to run failures first. A run checks pull requests of several priority rules, so there is no priority rule filter.

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsBisectionFailureFirstGroupResponse[]required
base_refstringrequired
queue_namestringrequired
statsBisectionFailureFirstInInterval[]required
startstring <date-time>required
endstring <date-time>required
red_stepsintegerrequired
stopped_early_red_stepsinteger | nullrequired
test_time_savednumber | nullrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/bisection_failure_first" \
  -H "Authorization: Bearer <token>"

Get the base refs in the repository #

GET /repos/{owner}/{repository}/stats/branches

Retrieve a list of base refs branches affected by queue activity

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
base_refsstring[]required
Example Response
                        {
  "base_refs": [
    "string"
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/branches" \
  -H "Authorization: Bearer <token>"

Get the queue checks retries statistics #

GET /repos/{owner}/{repository}/stats/checks_retries

Statistics about checks retries in the merge queue by intervals of time

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsChecksRetriesGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsChecksRetriesInInterval[]required
startstring <date-time>required
endstring <date-time>required
retriesintegerrequired

Failed checks run again in this interval: one per new CI run of a batch, whatever the number of pull requests it carries

retries_passedintegerrequired

Retries whose CI run ended in this interval with its checks passing, or with a pull request merging from it

retries_failedintegerrequired

Retries whose CI run ended in this interval with its checks failing again

retries_torn_downintegerrequired

Retries whose CI run ended in this interval before its checks concluded, such as when a batch ahead failed

total_retriesintegerrequired

Deprecated: use retries. Counts each pull request of a retried batch.

sessions_with_retriesintegerrequired

Deprecated: use retries.

recoveredintegerrequired

Deprecated: use retries_passed. Counts pull requests whose checks passed after a retry.

not_recoveredintegerrequired

Deprecated: use retries_failed and retries_torn_down. Counts pull requests whose checks did not pass after a retry.

recovery_ratenumberrequired

Deprecated: derive it as retries_passed / (retries_passed + retries_failed).

avg_retry_depthnumberrequired

Sunset: returned as it is until it is removed, and no other figure replaces it: stop reading it before then. The average number of retries a pull request's checks went through before they concluded.

max_retry_depthintegerrequired

Sunset: returned as it is until it is removed, and no other figure replaces it: stop reading it before then. The largest number of retries a pull request's checks went through before they concluded.

Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/checks_retries" \
  -H "Authorization: Bearer <token>"

Get the CI runs the merge queues started, and how they ended #

GET /repos/{owner}/{repository}/stats/ci_runs

CI runs the merge queues started, the ones that succeeded, and the ones they tore down before a merge with the reason why, by intervals of time. A run is one check the queue started -- on a draft pull request, on its merge queue branch, or on the queued pull request itself when it is checked in place -- counted once however many pull requests it carries. A run succeeded when at least one of its pull requests was not torn down after it: it merged, it passed and left the queue with no reason recorded, or a later run's result merged it. A run is counted as succeeded or wasted in the interval it ended in, when it merged or was torn down, so one still running or waiting to merge is in neither. A wasted run whose reason was not recorded is counted under UNKNOWN. A merge the queue trusts without running CI is not a run. Divide started by the merged pull requests of queues_merged_count for the CI runs each merge costs. A draft run carries pull requests of several priority rules, so there is no priority rule filter.

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsCIRunsGroupResponse[]required
base_refstringrequired
queue_namestringrequired
startedStartedCIRunsInInterval[]required
startstring <date-time>required
endstring <date-time>required
startedintegerrequired
succeededSucceededCIRunsInInterval[]required
startstring <date-time>required
endstring <date-time>required
countintegerrequired
wastedWastedCIRunsInInterval[]required
startstring <date-time>required
endstring <date-time>required
reasonstringrequired
countintegerrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "started": null,
      "succeeded": null,
      "wasted": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/ci_runs" \
  -H "Authorization: Bearer <token>"

Get the queue failure rate #

GET /repos/{owner}/{repository}/stats/failure_rate

Failure rate of pull requests in the merge queue by intervals of time

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsFailureRateGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsFailureRateInInterval[]required
startstring <date-time>required
endstring <date-time>required
totalintegerrequired
failuresintegerrequired
failure_ratenumberrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/failure_rate" \
  -H "Authorization: Bearer <token>"

Get the batches merged by skip intermediate results #

GET /repos/{owner}/{repository}/stats/skip_intermediate_results

Batches merged as soon as a later batch carrying their changes passed (skip_intermediate_results), out of every batch the queue merged, and where each skip happened, by intervals of time

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsSkipIntermediateResultsGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsSkipIntermediateResultsInInterval[]required
startstring <date-time>required
endstring <date-time>required
merged_batchesintegerrequired

Batches the queue merged. A batch counts once, in the interval and under the priority rule of its first pull request to merge, however much later the rest merge. A range starting more than an hour after one of its pull requests merged counts it again, under the next one's interval and priority rule, if that one merged in the range

batches_savedintegerrequired

Of the merged_batches, those skip_intermediate_results merged as soon as a later batch carrying their changes passed, without their own checks having to pass. A range sees only the skips that merged within an hour of it

batches_saved_during_speculative_checksintegerrequired

Of the batches_saved, those merged during speculative checks: a top-level batch, on a later batch's pass, before its own checks passed. A batch the queue recorded no place for, or both places for, counts in batches_saved alone

batches_saved_during_bisectionintegerrequired

Of the batches_saved, those merged during a bisection: a sub-batch, on a later sub-batch's pass, past its own failed checks included, or a batch being bisected, merged whole on a later batch's pass. A batch the queue recorded no place for, or both places for, counts in batches_saved alone

Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/skip_intermediate_results" \
  -H "Authorization: Bearer <token>"

Get the batches skip intermediate results would have merged #

GET /repos/{owner}/{repository}/stats/skip_intermediate_results_eligibility

On a queue without skip_intermediate_results, the batches the option would have merged on a later batch's pass instead of waiting for their own checks, by intervals of time: how many there were, how long in total they went on waiting, in seconds, until their own checks ended or something else ended them, how many of those checks failed, making the batches tested on top of them run theirs again, and how many did not merge as they were. Each batch is counted in the interval its wait ended.

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsSkipIntermediateResultsEligibilityGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsSkipIntermediateResultsEligibilityInInterval[]required
startstring <date-time>required
endstring <date-time>required
eligible_batchesintegerrequired

Batches skip_intermediate_results would have merged as soon as a later batch carrying their changes passed, had it been on. A batch counts once, in the interval its wait for its own checks ended

eligible_batches_failedintegerrequired

Of the eligible_batches, those whose own checks then failed, timed out or were interrupted, making the batches tested on top of them run theirs again

eligible_batches_abortedintegerrequired

Of the eligible_batches, those whose wait ended short of a pass, by a failure, a teardown or a dequeue, so that they did not merge as they were, where the option would have merged them

eligible_wait_time_sumnumberrequired

How long the eligible_batches waited in all, in seconds, from when the option would have merged them until their own checks ended or something else ended them

Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/skip_intermediate_results_eligibility" \
  -H "Authorization: Bearer <token>"

Get PR exit reasons by interval #

GET /repos/{owner}/{repository}/stats/queues_pr_exit_reasons

Count of pull request queue-session exits by reason, grouped by time intervals. Each queue session (enter → leave) is counted once. A PR re-queued after failure appears in each session separately.

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

base_ref string[]

Base reference(s) of the pull requests

queue_name string[]

Name of the merge queue(s) for the pull requests

priority_rule_name string[]

Name of the priority rule(s) of the pull requests

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
groupsPrExitReasonGroupResponse[]required
base_refstringrequired
queue_namestringrequired
priority_rule_namestring | nullrequired
statsPrExitReasonInInterval[]required
startstring <date-time>required
endstring <date-time>required
exit_reasonstringrequired
countintegerrequired
Example Response
                        {
  "groups": [
    {
      "base_ref": "string",
      "queue_name": "string",
      "priority_rule_name": "string",
      "stats": null
    }
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/queues_pr_exit_reasons" \
  -H "Authorization: Bearer <token>"

Get the queue names in the repository #

GET /repos/{owner}/{repository}/stats/queues

Retrieve a list of queue names affected by queue activity

Application key permission: merge_queue_statistics: read.

Application Key Admin Application Key OIDC CI Token Mergify User Token
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\-]+$

start_at string <date-time>

Get the stats from this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to 1 day before end_at.

end_at string <date-time>

Get the stats until this date: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to now.

200 Successful Response
queue_namesstring[]required
Example Response
                        {
  "queue_names": [
    "string"
  ]
}
                      
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, merge_queue_stats: Merge Queue Statistics.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/repos/:owner/:repository/stats/queues" \
  -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

detailstringrequired
error_code"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_OVERLAP"
Enum: 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_OVERLAP
documentation_urlstring
served_versionsstring[]required
Example Response
                {
  "detail": "string",
  "error_code": "API_VERSION_UNKNOWN",
  "documentation_url": "string",
  "served_versions": [
    "string"
  ]
}
              

SubscriptionFeatureRequiredBody

detailstringrequired
error_code"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_OVERLAP"
Enum: 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_OVERLAP
documentation_urlstring
feature"ci_insights_quarantine" | "delegated_roles" | "integration_datadog" | "integration_slack" | "merge_queue_scopes" | "merge_queue_stats" | "scheduled_freeze" | "test_tracked_branches"required
Enum: ci_insights_quarantine delegated_roles integration_datadog integration_slack merge_queue_scopes merge_queue_stats scheduled_freeze test_tracked_branches
Example Response
                {
  "detail": "string",
  "error_code": "SUBSCRIPTION_FEATURE_REQUIRED",
  "documentation_url": "string",
  "feature": "ci_insights_quarantine"
}
              

CredentialRefusedBody

detailstringrequired
error_code"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_OVERLAP"
Enum: 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_OVERLAP
documentation_urlstring
accepted_permissionsAcceptedPermission[] | null

The permissions the operation accepts, any one of which a credential needs to call it, as its x-mergify-permission extension lists them, whatever refused the credential. Null when the operation takes no credential of this kind.

resource"merge_queue" | "merge_queue_statistics" | "merge_queue_pause" | "scheduled_freezes" | "merge_queue_settings" | "merge_protections" | "ci_jobs" | "job_retry_rules" | "runners" | "runner_fleet_settings" | "tests" | "quarantines" | "test_retry_settings" | "flaky_detection_settings" | "test_tracked_branches" | "test_selection" | "repositories" | "configuration" | "pull_requests" | "simulators" | "activity_log" | "slack" | "datadog" | "users" | "products" | "roles" | "api_version" | "oidc_trust_policies" | "ci_reporting"required
Enum: merge_queue merge_queue_statistics merge_queue_pause scheduled_freezes merge_queue_settings merge_protections ci_jobs job_retry_rules runners runner_fleet_settings tests quarantines test_retry_settings flaky_detection_settings test_tracked_branches test_selection repositories configuration pull_requests simulators activity_log slack datadog users products roles api_version oidc_trust_policies ci_reporting
access"read" | "write"required
Enum: read write
Example Response
                {
  "detail": "string",
  "error_code": "APPLICATION_KEY_REFUSED",
  "documentation_url": "string",
  "accepted_permissions": [
    {
      "resource": "merge_queue",
      "access": "read"
    }
  ]
}
              

ConfigurationInvalidBody

detailstringrequired
error_code"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_OVERLAP"
Enum: 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_OVERLAP
documentation_urlstring
extended_repositorystring | null
Example Response
                {
  "detail": "string",
  "error_code": "CONFIGURATION_INVALID",
  "documentation_url": "string",
  "extended_repository": "string"
}
              

Was this page helpful?