v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

Get changed files for a pull request

get/repos/{owner}/{repo}/pulls/{index}/files

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

indexinteger required

index of the pull request to get

Query parameters

skip-tostring

skip to given file

whitespace'ignore-all' | 'ignore-change' | 'ignore-eol' | 'show-all'

whitespace behavior

pageinteger

page number of results to return (1-based)

limitinteger

page size of results

Response

ChangedFileList

additionsinteger

The number of lines added to the file

changesinteger

The total number of changes to the file

contents_urlstring

The API URL to get the file contents

deletionsinteger

The number of lines deleted from the file

filenamestring

The name of the changed file

html_urlstring

The HTML URL to view the file changes

previous_filenamestring

The previous filename if the file was renamed

raw_urlstring

The raw URL to download the file

statusstring

The status of the file change (added, modified, deleted, etc.)