repository
Get a commit's diff or patch
get/repos/{owner}/{repo}/git/commits/{sha}.{diffType}
Path parameters
ownerstring required
owner of the repo
repostring required
name of the repo
shastring required
SHA of the commit to get
diffType'diff' | 'patch' required
whether the output is diff or patch
Response
APIString is a string response
string required