listCommentsByPullRequest method

Stream<PullRequestComment> listCommentsByPullRequest(
  1. RepositorySlug slug,
  2. int number
)

Lists all comments on the specified pull request.

API docs: https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request

Implementation

Stream<PullRequestComment> listCommentsByPullRequest(
    RepositorySlug slug, int number) {
  return PaginationHelper(github).objects(
      'GET',
      '/repos/${slug.fullName}/pulls/$number/comments',
      PullRequestComment.fromJson);
}