v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

Get a single commit from a repository

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

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

shastring required

a git ref or commit sha

Query parameters

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')

Response

Commit

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