listLabelsByIssue method

Stream<IssueLabel> listLabelsByIssue(
  1. RepositorySlug slug,
  2. int issueNumber
)

Lists all labels for an issue.

API docs: https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository

Implementation

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