Get a pull request's changed files 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; omit it to read whatever the head is now. Requires membership in the owning organization of a task linked to this pull request — the task that published it or a task that reviewed it — and current GitHub access to the repository. 404 covers an unknown pull request, one linked to no organization the caller belongs to, and one whose GitHub access the caller has lost; the three are deliberately indistinguishable.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
^[0-9a-f]{40}$