---
title: "Retrieve conflicted merges in this repo"
method: GET
path: "/repos/{repo_id}/merges"
tags: ["Repository Merge Manipulation"]
---

# Retrieve conflicted merges in this repo

`GET /repos/{repo_id}/merges`

## Request

- Base URL: `https://api.diversion.dev/v0`
- URL: `https://api.diversion.dev/v0/repos/{repo_id}/merges`
- Auth: one of:
  - OAuth 2
    - Implicit: `https://auth.diversion.dev/oauth2/authorize`
    - Scopes: `coreapi/read`
  - OAuth 2
    - Implicit: `https://auth.diversion.dev/oauth2/authorize`
    - Scopes: `coreapi/write`
- TypeScript: <https://skmtc.dev/diversion/apis/diversion-core-api/docs/repos/:repo_id/merges/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `base_id` string
- `other_id` string

## Response `200`

Success

- object
  - `object` 'Merge', required
  - `items` Merge[], required
    - `id` string, required
    - `repo_id` string, required
    - `user` User, required: User details
      - `image` string: URL of the user image. If updating the image, could be a base64 encoded image.
      - `email` string, email
      - `full_name` string
      - `id` string, required
      - `name` string
      - `tier` 'EDUCATION' | 'INDIE' | 'PROFESSIONAL' | 'ENTERPRISE' | 'UNKNOWN': The tier of the user
    - `base_ref` string, required
    - `base_commit` string, required
    - `other_ref` string, required
    - `other_commit` string, required
    - `ancestor_commit` string, required

---

[API](https://skmtc.dev/diversion/apis/diversion-core-api.md) - [All operations](https://skmtc.dev/diversion/apis/diversion-core-api/llms.txt) - [OpenAPI document](https://skmtc.dev/diversion/apis/diversion-core-api/revisions/38a18aba804b?raw)
