Get a pull request diff or patch
GET
/repos/{owner}/{repo}/pulls/{index}.{diffType}
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
Owner of the repo
repo
required
string
Name of the repo
index
required
integer format: int64
Index of the pull request to get
diffType
required
string
Whether the output is diff or patch
Query Parameters
Section titled “ Query Parameters ” binary
boolean
Whether to include binary file changes. if true, the diff is applicable with git apply
Responses
Section titled “ Responses ”APIString is a string response
Media type text/plain
string
APINotFound is a not found error response
Media type text/plain
object
errors
Array<string>
message
string
url
string