---
title: "Get the batches skip intermediate results would have merged"
method: GET
path: "/repos/{owner}/{repository}/stats/skip_intermediate_results_eligibility"
tags: ["statistics"]
---

# Get the batches skip intermediate results would have merged

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

## Request

- Base URL: `https://api.mergify.com/v1`
- URL: `https://api.mergify.com/v1/repos/{owner}/{repository}/stats/skip_intermediate_results_eligibility`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

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.

## Path parameters

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

## Query parameters

- `base_ref` string[], nullable: Base reference(s) of the pull requests
- `queue_name` string[], nullable: Name of the merge queue(s) for 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 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, nullable: 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.

## Response `200`

Successful Response

- SkipIntermediateResultsEligibilityResponse
  - `groups` SkipIntermediateResultsEligibilityGroupResponse[], required
    - `base_ref` string, required
    - `queue_name` string, required
    - `priority_rule_name` string, nullable, required
    - `stats` SkipIntermediateResultsEligibilityInInterval[], required
      - `start` string, date-time, required
      - `end` string, date-time, required
      - `eligible_batches` integer, required: 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_failed` integer, required: 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_aborted` integer, required: 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_sum` number, required: 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

## Other responses

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

## Changes

- **2026-10-15** `0052b52c72ed`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mergify/apis/mergify-api/changes/repos/:owner/:repository/stats/skip_intermediate_results_eligibility/get.md)

---

[API](https://skmtc.dev/mergify/apis/mergify-api.md) · [All operations](https://skmtc.dev/mergify/apis/mergify-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mergify/apis/mergify-api/revisions/00b8f4a31190?raw)
