---
title: "Get the queue checks outcome for the repository"
method: GET
path: "/repos/{owner}/{repository}/stats/merge_queue_checks_outcome"
tags: ["statistics"]
deprecated: true
---

# 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).

## Path parameters

- `owner` string, required — The owner of the repository
- `repository` string, required — The name of the repository

## Query parameters

- `base_ref` string[], nullable — Base reference(s) of the pull requests
- `queue_name` string[], nullable — Merge queue name(s) of the pull requests
- `priority_rule_name` string[], nullable — Name of the priority rule(s) of the pull requests
- `start_at` string, date-time, nullable — Get the stats until this date, default 1 day before end_at
- `end_at` string, date-time, nullable — Get the stats from this date, default now

## Response `200`

Successful Response

- ChecksOutcomeResponse
  - `groups` ChecksOutcomeGroupResponse[], required
    - `base_ref` string, required
    - `queue_name` string, required
    - `priority_rule_name` string, nullable, required
    - `stats` QueueChecksOutcome, required
      - `BASE_BRANCH_CHANGED` integer — The pull request base branch has changed
      - `BASE_BRANCH_MISSING` integer — The base branch does not exist anymore
      - `BATCH_MAX_FAILURE_RESOLUTION_ATTEMPTS` integer — The maximum batch failure resolution attempts has been reached
      - `BATCH_SCOPES_CHANGED` integer — The batch has been recomposed because a pull request's scopes changed
      - `BRANCH_UPDATE_FAILED` integer — The pull request can't be updated for security reasons
      - `CHECKS_FAILED` integer — The checks for the queued pull request have failed
      - `CHECKS_INTERRUPTED` integer — The checks for the queued pull request were cancelled before producing a result
      - `CHECKS_TIMEOUT` integer — The checks for the queued pull request have timed out
      - `DROPPED_BY_BISECTION_ELIMINATION` integer — The pull request was dropped untested when batch bisection isolated the failure to other pull requests
      - `CONFLICT_WITH_BASE_BRANCH` integer — The pull request conflicts with the base branch
      - `CONFLICT_WITH_PULL_AHEAD` integer — The pull request conflicts with at least one pull request ahead in queue
      - `DRAFT_PULL_REQUEST_CHANGED` integer — New commits have been added to the draft pull request that were not made by Mergify
      - `BATCH_PULL_REQUEST_CLOSED` integer — The batch pull request has been closed
      - `INCOMPATIBILITY_WITH_BRANCH_PROTECTIONS` integer — The pull request cannot be checked because of an incompatibility with branch protections
      - `MERGE_QUEUE_RESET` integer — The merge queue has been reset
      - `PR_AHEAD_DEQUEUED` integer — A pull request ahead in the queue has been dequeued
      - `BATCH_AHEAD_FAILED` integer — A pull request ahead in the queue failed to get merged
      - `BATCH_AHEAD_BRANCH_EDITED` integer — The branch of a batch ahead in the queue was edited, so this batch has been recomposed on top of it
      - `PR_CHECKS_STOPPED_BECAUSE_MERGE_QUEUE_PAUSE` integer — The checks have been interrupted because the merge queue is paused on this repository
      - `PR_DEQUEUED` integer — Pull request has been dequeued
      - `PR_DEQUEUED_FROM_PARTITION` integer — Pull request has been dequeued from a partition
      - `PR_UNEXPECTEDLY_FAILED_TO_MERGE` integer — Pull request unexpectedly failed to get merged
      - `PR_WITH_HIGHER_PRIORITY_QUEUED` integer — A pull request with a higher priority has been queued
      - `PULL_REQUEST_UPDATED` integer — The pull request has been unexpectedly updated
      - `QUEUE_RULE_MISSING` integer — The queue rules are missing because of a configuration change
      - `SPECULATIVE_CHECK_NUMBER_REDUCED` integer — The number of speculative checks, in the queue rules, has been reduced
      - `SUCCESS` integer — Successfully merged the pull request
      - `PR_MANUALLY_MERGED` integer — The pull request has been manually merged
      - `DRAFT_PULL_REQUEST_CREATION_FAILED` integer — The draft pull request cannot be created
      - `DRAFT_PULL_REQUEST_CREATION_BRANCH_NOT_INDEXED` integer — The draft pull request cannot be created because GitHub has not indexed the branch yet
      - `CONFIGURATION_CHANGED` integer — The configuration has changed
      - `UNPROCESSABLE_PULL_REQUEST` integer — The pull request could not be processed by Mergify
      - `PR_MANUALLY_DEQUEUED` integer — The pull request has been manually removed from the queue
      - `STACK_PREDECESSOR_DEQUEUED` integer — The pull request has been dequeued because its stack predecessor was dequeued
      - `INTERMEDIATE_RESULTS_SKIPPED` integer — The pull request intermediate results have been skipped during batch promotion
      - `CHECKS_RETRIED` integer — The checks have failed and are being retried
      - `SCHEDULED_FREEZE_STATUS_CHANGED` integer — The batch has been split because a scheduled freeze changed the freeze status of its pull requests
      - `SCHEDULE_BLOCKED_AHEAD_YIELDED` integer — A pull request ahead was waiting for its merge schedule, so it yielded its position to let ready pull requests merge first
      - `BASE_REF_ALIGNMENT_TIMEOUT` integer — The stacked pull request's base branch could not be retargeted onto the queue base branch and was dequeued
      - `GITHUB_STACKED_PULL_REQUEST_MERGE_UNSUPPORTED` integer — The pull request is a GitHub-native stacked pull request, which GitHub does not allow merging through the API, and was dequeued

## Other responses

- `403` — Forbidden
- `404` — Not found
- `409` — Conflict
- `422` — Unprocessable entity

---

[API](https://skmtc.net/mergify/apis/mergify-api.md) · [All operations](https://skmtc.net/mergify/apis/mergify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mergify/mergify-api/revisions/ae394a06c465/schema)
