Get the changed files of a reviewed pull request with unified-diff patches
Fetched live from GitHub at request time; nothing is persisted. patch is absent when GitHub provides none (binary or oversized files). truncated is true when the listing hit GitHub’s 3000-file cap. expected_head is optional and pins the answer to one commit: GitHub computes this listing against the pull request’s head at request time, so the head is read back after the walk and a head that has moved is a 409 rather than the file list of a different commit. Pass it when the patches will be paired with file content read at that same commit (getPRReviewFileContent); omit it to read whatever the head is now. 404 semantics match getPRReview and are resolved before any GitHub call: no review group in an organization the caller belongs to is indistinguishable from no such PR. The live read additionally requires the caller’s personal current GitHub installation link, so a caller who has disconnected GitHub gets the same 404 even though the review group survives in the listing.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
^[0-9a-f]{40}$