List repository commits
Lists public repository commits with branch, path, author, committer, and time filters.
GET
/github/repos/{owner}/{repo}/commitsNo authentication requiredPath parameters2
| Name | Type | Description |
|---|---|---|
owner* | string | The repository owner login. The value is case-insensitive. |
repo* | string | The repository name without the .git suffix. The value is case-insensitive. |
Query parameters8
| Name | Type | Description |
|---|---|---|
sha | string | A branch, tag, or commit to start listing from. |
path | string | Only commits affecting this path. |
author | string | Commit author username or email. |
committer | string | Committer username or email. |
since | string | Only results after this ISO 8601 timestamp. |
until | string | Only commits before this ISO 8601 timestamp. |
per_page | integer | The number of results to return per page. Default: Minimum: 1Maximum: 100 |
page | integer | The page number to fetch. Default: Minimum: 1 |
Headers2
| Name | Type | Description |
|---|---|---|
If-None-Match | string | An ETag for conditional requests. |
If-Modified-Since | string | An HTTP date for conditional requests. |
Responses
application/jsonSchemaGithubCommit[]
Array itemobject
Additional properties are allowed
The original GitHub response.