listComments method

Stream<PullRequestComment> listComments(
  1. RepositorySlug slug
)

Lists all comments on all pull requests for the repository.

API docs: https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository

Implementation

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