pull-request-size icon indicating copy to clipboard operation
pull-request-size copied to clipboard

Handle pagination when loading files

Open MateusZitelli opened this issue 3 years ago • 0 comments

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).

MateusZitelli avatar Oct 13 '22 11:10 MateusZitelli