Skip to content

Commit

Permalink
chore: add todo marker
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlJi committed Mar 17, 2024
1 parent 74ba3f2 commit c2bd3e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/linters/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ func ListPullRequestsFiles(ctx context.Context, gc *github.Client, owner string,
}

// ListPullRequestsComments lists all comments on the specified pull request.
// TODO(CarlJi): add pagination support.
func ListPullRequestsComments(ctx context.Context, gc *github.Client, owner string, repo string, number int) ([]*github.PullRequestComment, error) {
var allComments []*github.PullRequestComment
opts := &github.PullRequestListCommentsOptions{}
opts := &github.PullRequestListCommentsOptions{
ListOptions: github.ListOptions{PerPage: 100},
}

err := RetryWithBackoff(ctx, func() error {
comments, resp, err := gc.PullRequests.ListComments(ctx, owner, repo, number, opts)
Expand Down

0 comments on commit c2bd3e3

Please sign in to comment.