pull-request-size
pull-request-size copied to clipboard
Handle pagination when loading files
GitHub API returns a paginated list of altered files in the PR. However, since we use the list of files to remove additions/removals from generated files, this only checks at the maximum of 30 generated files.
This PR uses octokit.paginate to fetch all pages (GitHub returns a max of 3000 files per PR).