Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit 1c9e054

Browse files
nat-hendersonjtarchie
authored andcommitted
Must fetch entire PR using get-one-PR API
The result is smaller when you fetch all the PRs as a list instead of fetching them one at a time. We need some of the fields which are in the single-PR view but not the list-PR view.
1 parent 68449af commit 1c9e054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/lib/filters/all.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def initialize(pull_requests: [], input: Input.instance)
1111

1212
def pull_requests
1313
@pull_requests ||= Octokit.pulls(input.source.repo, pull_options).map do |pr|
14-
PullRequest.new(pr: pr)
14+
PullRequest.new(pr: Octokit.pull_request(input.source.repo, pr['number'], pull_options))
1515
end
1616
end
1717

0 commit comments

Comments
 (0)