Skip to content

Get a pull request diff or patch

GET
/repos/{owner}/{repo}/pulls/{index}.{diffType}
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
Allowed values: diff patch

Whether the output is diff or patch

binary
boolean

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

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