Browse/GitHub/List Pull Request Files
List Pull Request Files
GitHub
$19 · Pro
List the files changed in a pull request.
list-pull-request-files.ts
const { data: files } = await octokit.rest.pulls.listFiles({ owner, repo, pull_number: pullNumber, per_page: 100 });
Unlock the full snippet
This is a Pro snippet — get all-access for $19, or unlock just this one snippet for $1.
List Pull Request Files — GitHub Example (TypeScript, Node, Python, Go, PHP, Ruby) | apiexamples