GitHub & Code
getPullRequestDiff
Get Pull Request Diff
Read a bounded unified diff for one GitHub pull request.
Arguments
ownerstringrequiredRepository ownerrepostringrequiredRepository namepullNumbernumberrequiredPull request numbermaxBytesintegeroptionalMaximum UTF-8 diff bytes to return. Defaults to 200,000 and clamps at 400,000.
Returns
Returns the diff, head and base refs, and change totals for relay-seat review.
Declared limits
maxBytes: greater than 0maxBytes: maximum 9007199254740991
Ask for it
The Cloud routes these requests to this verb.
- show me the diff for PR #N
- review the changes in that pull request
Pair it with
The verbs that finish the job.