listCommentsByRepo method

Stream<IssueComment> listCommentsByRepo(
  1. RepositorySlug slug
)

Lists all comments in a repository.

API docs: https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue

Implementation

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