listCommentsByIssue method

Stream<IssueComment> listCommentsByIssue(
  1. RepositorySlug slug,
  2. int issueNumber
)

Lists comments on the specified issue.

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

Implementation

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