v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

Get a list of all commits from a repository

get/repos/{owner}/{repo}/commits

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

Query parameters

shastring

SHA or branch to start listing commits from (usually 'master')

pathstring

filepath of a file/dir

sincestring date-time

Only commits after this date will be returned (ISO 8601 format)

untilstring date-time

Only commits before this date will be returned (ISO 8601 format)

statboolean

include diff stats for every commit (disable for speedup, default 'true')

verificationboolean

include verification for every commit (disable for speedup, default 'true')

filesboolean

include a list of affected files for every commit (disable for speedup, default 'true')

pageinteger

page number of results to return (1-based)

limitinteger

page size of results (ignored if used with 'path')

notstring

commits that match the given specifier will not be listed.

Response

CommitList

createdstring date-time

Created is the time when the commit was created

html_urlstring

HTMLURL is the web URL for viewing the commit

shastring

SHA is the commit SHA hash

urlstring

URL is the API URL for the commit