v6

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-05-12308589.5 KB
Git Commits

List

List git commits.

get/git_commits

Query parameters

offsetinteger

The offset of the items to return. An offset of 10 with a limit of 10 returns items 11-20.

limitinteger
Example:10

The maximum number of items to return. A limit of 15 with an offset of 0 returns items 1-15.

order_byGitCommitOrderBy[]

Sort order for the git commit results.

[
  "created_at:desc"
]
expandGitCommitListExpansion[]

Fields to expand on each git commit in the list.

idstring[]

The git commit IDs to filter by.

[
  "git_cmt_123"
]
shastring[]

The git commit SHAs to filter by.

[
  "a1b2c3d4e5f6"
]

Response

Successfully listed the git commits.

object'list' required

The object type, which is always list.

total_countinteger

The total number of items in the list. By default the total count is not returned. The total count must be expanded (using expand=total_count) to get the total number of items in the list.

limitinteger required

The maximum number of items to return. A limit of 15 with an offset of 0 returns items 1-15.

offsetinteger required

The offset of the items to return. An offset of 10 with a limit of 10 returns items 11-20.

has_moreboolean required

True if there are more items in the list to return. False if there are no more items to return.

Example response

{
  "object": "list",
  "data": [
    {
      "object": "git_commit",
      "id": "git_commit_123",
      "sha": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
      "message": "Add basic motion configurations",
      "repository_owner": "user",
      "repository_name": "repo",
      "repository_url": "https://github.com/user/repo",
      "commit_url": "https://github.com/user/repo/commit/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
      "created_at": "2021-01-01T00:00:00Z"
    }
  ]
}