GET
/
repos
/
{repo_id}
/
merges
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id}/merges \
  --header 'Authorization: Bearer <token>'
{
  "object": "Merge",
  "items": [
    {
      "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>"
    }
  ]
}

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.

Query Parameters

base_id
string

A reference to a base unto which changes will be applied

other_id
string

A reference to a source version from which changes will be taken

Response

200 - application/json
object
enum<string>
required
Available options:
Merge
items
object[]
required