GET
/
repos
/
{repo_id}
/
merges
/
{merge_id}
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id}/merges/{merge_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "repo_id": "<string>",
  "user": {
    "image": "<string>",
    "email": "jsmith@example.com",
    "full_name": "<string>",
    "id": "<string>",
    "name": "<string>"
  },
  "base_ref": "<string>",
  "base_commit": "<string>",
  "other_ref": "<string>",
  "other_commit": "<string>",
  "ancestor_commit": "<string>",
  "conflicts": [
    {
      "conflict_id": "<string>",
      "is_resolved": true,
      "base": {
        "conflict_index_id": "RESULT",
        "file_mode": 16877,
        "path": "<string>",
        "prev_path": "<string>",
        "type": 1
      },
      "other": {
        "conflict_index_id": "RESULT",
        "file_mode": 16877,
        "path": "<string>",
        "prev_path": "<string>",
        "type": 1
      },
      "result": {
        "conflict_index_id": "RESULT",
        "file_mode": 16877,
        "path": "<string>",
        "prev_path": "<string>",
        "type": 1
      }
    }
  ]
}

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

merge_id
string
required

An ID of a merge attempt

Response

200 - application/json
id
string
required
repo_id
string
required
user
object
required

User details

base_ref
string
required
base_commit
string
required
other_ref
string
required
other_commit
string
required
ancestor_commit
string
required
conflicts
object[]
required