List pull requests files
**Note:** Responses include a maximum of 3000 files. The paginated response returns 30 files per page by default.
/repos/{owner}/{repo}/pulls/{pull_number}/files- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
- pull_number integerrequired
Query Parameters
- per_page integeroptional
Results per page (max 100)
- page integeroptional
Page number of the results to fetch.
Responses
Response
Headers
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last" items Diff Entry objectDiff Entry
Diff Entry
Example: 103
Example: https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt
Example: 124
https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5eExample: 21
Example: file1.txt
Example: @@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test
Example: file.txt
Example: https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt
Example: bbcd538c8e72b8c175046e27cc8f907076331401
Example: added
Validation failed
errors array[object]optional
items object
Internal Error