v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

Get a pull request diff or patch

get/repos/{owner}/{repo}/pulls/{index}.{diffType}

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

indexinteger required

index of the pull request to get

diffType'diff' | 'patch' required

whether the output is diff or patch

Query parameters

binaryboolean

whether to include binary file changes. if true, the diff is applicable with git apply

Response

APIString is a string response

string required