GET
/
repos
/
{repo_id}
/
commits
/
{commit_id}
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id}/commits/{commit_id} \
  --header 'Authorization: Bearer <token>'
{
  "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.

commit_id
string
required

A commit ID

Response

200 - application/json
commit_id
string
required
created_ts
integer
required

Seconds since epoch UTC

commit_message
string
branch_id
string
required

The branch on which this commit was created

author
object
required

Details of the user who added the commit

parents
string[]
required

List of parent commits of this commit