Skip to content

Commit

Permalink
Merge pull request #96 from WeTransfer/feature/increase-pr-limit
Browse files Browse the repository at this point in the history
Increase PR Limit to fetch 100 latest
  • Loading branch information
AvdLee committed May 1, 2023
2 parents 83a25b4 + 23762a6 commit f3c63e7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"repositoryURL": "https://github.com/WeTransfer/octokit.swift",
"state": {
"branch": "main",
"revision": "8f78b18b3278a378d9a96bd7b832ce4091378c5c",
"revision": "f20ac29a920aa8a7b36340d7f285a727e9b30d6e",
"version": null
}
},
Expand Down
3 changes: 2 additions & 1 deletion Sources/GitBuddyCore/GitHub/PullRequestFetcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ struct PullRequestFetcher {
base: baseBranch,
state: .closed,
sort: .updated,
direction: .desc
direction: .desc,
perPage: 100
) { response in
switch response {
case .success(let pullRequests):
Expand Down
1 change: 1 addition & 0 deletions Tests/GitBuddyTests/TestHelpers/Mocks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ extension Mocker {
urlComponents.queryItems = [
URLQueryItem(name: "base", value: baseBranch),
URLQueryItem(name: "direction", value: "desc"),
URLQueryItem(name: "per_page", value: "100"),
URLQueryItem(name: "sort", value: "updated"),
URLQueryItem(name: "state", value: "closed")
]
Expand Down

0 comments on commit f3c63e7

Please sign in to comment.