utils/github: handle over 30 changed files

This commit is contained in:
Michael Cho 2024-12-13 22:41:21 -05:00
parent c455911059
commit e9671db2d3
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85

View File

@ -675,7 +675,11 @@ module GitHub
end
def self.get_pull_request_changed_files(tap_remote_repo, pull_request)
API.open_rest(url_to("repos", tap_remote_repo, "pulls", pull_request, "files"))
files = []
API.paginate_rest(url_to("repos", tap_remote_repo, "pulls", pull_request, "files")) do |result|
files.concat(result)
end
files
end
private_class_method def self.add_auth_token_to_url!(url)