List pull request files
Lists changed files in a pull request with diff statistics and available patches.
GET
/github/repos/{owner}/{repo}/pulls/{pull_number}/filesNo authentication requiredPath parameters3
| Name | Type | Description |
|---|---|---|
owner* | string | The repository owner login. The value is case-insensitive. |
repo* | string | The repository name without the .git suffix. The value is case-insensitive. |
pull_number* | integer | The pull request number. Minimum: 1 |
Query parameters2
| Name | Type | Description |
|---|---|---|
per_page | integer | The number of results to return per page. Default: Minimum: 1Maximum: 100 |
page | integer | The page number to fetch. Default: Minimum: 1 |
Headers2
| Name | Type | Description |
|---|---|---|
If-None-Match | string | An ETag for conditional requests. |
If-Modified-Since | string | An HTTP date for conditional requests. |
Responses
application/jsonSchemaGithubDiffFile[]
Array itemobject
Additional properties are allowed
The original GitHub response.