GET
/
repos
/
{repo_id}
/
commits
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id}/commits \
  --header 'Authorization: Bearer <token>'
{
  "object": "Commit",
  "items": [
    {
      "commit_id": "example_id",
      "created_ts": 123,
      "commit_message": "<string>",
      "branch_id": "<string>",
      "author": {
        "image": "<string>",
        "email": "jsmith@example.com",
        "full_name": "<string>",
        "id": "<string>",
        "name": "<string>"
      },
      "parents": [
        "<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

ref_ids
string[]

If specified, filters commit list to start with specified ref IDs (branches, workspaces etc.), otherwise return commits accessible from all branches.

limit
integer
default: 100

Limit the number or items returned from a listing api

skip
integer

Skip a number of items returned from a listing api

query
string

A string query to filter against in a listing api

Response

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