Skip to content

Commit

Permalink
utils/github: handle over 30 changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Dec 14, 2024
1 parent c455911 commit e9671db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Library/Homebrew/utils/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,11 @@ def self.check_for_duplicate_pull_requests(name, tap_remote_repo, file:, quiet:
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)

Check warning on line 680 in Library/Homebrew/utils/github.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/utils/github.rb#L678-L680

Added lines #L678 - L680 were not covered by tests
end
files

Check warning on line 682 in Library/Homebrew/utils/github.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/utils/github.rb#L682

Added line #L682 was not covered by tests
end

private_class_method def self.add_auth_token_to_url!(url)
Expand Down

0 comments on commit e9671db

Please sign in to comment.