Skip to content

Commit

Permalink
Fix broken pull request files pagination (#2766)
Browse files Browse the repository at this point in the history
Fixes #2741.

Pagination was broken causing infinite loop of paging requests for PRs with more than 100 files.
  • Loading branch information
habibm authored Jul 5, 2021
1 parent 3827ffe commit 37abbeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github/queries.gql
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ query PullRequest($owner: String!, $name: String!, $number: Int!) {
}
}

query PullRequestFiles($owner: String!, $name: String!, $number: Int!) {
query PullRequestFiles($owner: String!, $name: String!, $number: Int!, $after: String) {
repository(owner: $owner, name: $name) {
pullRequest(number: $number) {
files(first: 100) {
files(first: 100, after: $after) {
nodes {
path
viewerViewedState
Expand Down

0 comments on commit 37abbeb

Please sign in to comment.