v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
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