---
title: "Details of a specific merge in progress"
method: GET
path: "/repos/{repo_id}/merges/{merge_id}"
tags: ["Repository Merge Manipulation"]
---

# Details of a specific merge in progress

`GET /repos/{repo_id}/merges/{merge_id}`

## Request

- Base URL: `https://api.diversion.dev/v0`
- URL: `https://api.diversion.dev/v0/repos/{repo_id}/merges/{merge_id}`
- 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/:merge_id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

An object describing the merge.

- DetailedMerge: Describes a merge in progress with conflicts
  - `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
  - `conflicts` Conflict[], required
    - `conflict_id` string, required
    - `is_resolved` boolean, required
    - `base` ConflictIndex, required: A index in a conflict, could be representing either "base", "other" or "result". If the index does not represent "result", then all properties besides "prev_path" can be considered 'required'.
      - `conflict_index_id` 'RESULT' | 'BASE' | 'OTHER', required
      - `file_mode` 16877 | 33188 | 33261 | 40960, required: The file mode (as Unix mode)
      - `path` string, required
      - `prev_path` string
      - `type` 1 | 2 | 3 | 4, required: One of: 1 - INTACT, 2 - ADDED, 3 - MODIFIED, 4 - DELETED
    - `other` ConflictIndex, required: A index in a conflict, could be representing either "base", "other" or "result". If the index does not represent "result", then all properties besides "prev_path" can be considered 'required'.
      - `conflict_index_id` 'RESULT' | 'BASE' | 'OTHER', required
      - `file_mode` 16877 | 33188 | 33261 | 40960, required: The file mode (as Unix mode)
      - `path` string, required
      - `prev_path` string
      - `type` 1 | 2 | 3 | 4, required: One of: 1 - INTACT, 2 - ADDED, 3 - MODIFIED, 4 - DELETED
    - `result` ConflictIndex: A index in a conflict, could be representing either "base", "other" or "result". If the index does not represent "result", then all properties besides "prev_path" can be considered 'required'.
      - `conflict_index_id` 'RESULT' | 'BASE' | 'OTHER', required
      - `file_mode` 16877 | 33188 | 33261 | 40960, required: The file mode (as Unix mode)
      - `path` string, required
      - `prev_path` string
      - `type` 1 | 2 | 3 | 4, required: One of: 1 - INTACT, 2 - ADDED, 3 - MODIFIED, 4 - DELETED

## Other responses

- `404`: The specified resource was not found

---

[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)
