Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit d246220

Browse files
committed
Fix PR review comments cursor bug.
The cursor was not being used for the first page, or ever in fact because the capitalization was wrong.
1 parent cd366cf commit d246220

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.App/Services/ModelService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ private async Task<IEnumerable<IPullRequestReviewCommentModel>> GetPullRequestRe
484484
.Cast<Octokit.GraphQL.Model.PullRequestReview>()
485485
.Select(x => new
486486
{
487-
CommentPage = x.Comments(100, Var("Cursor"), null, null).Select(z => new
487+
CommentPage = x.Comments(100, Var("cursor"), null, null).Select(z => new
488488
{
489489
z.PageInfo.HasNextPage,
490490
z.PageInfo.EndCursor,
@@ -507,7 +507,7 @@ private async Task<IEnumerable<IPullRequestReviewCommentModel>> GetPullRequestRe
507507
}).Compile();
508508
var vars = new Dictionary<string, object>
509509
{
510-
{ "cursor", null }
510+
{ "cursor", commentCursor }
511511
};
512512

513513
while (true)

0 commit comments

Comments
 (0)