listAnnotationsInCheckRun method
Stream<CheckRunAnnotation>
listAnnotationsInCheckRun(
- RepositorySlug slug, {
- required CheckRun checkRun,
Lists annotations for a check run.
GitHub Apps must have the checks:read
permission on a private repository or pull access to a public repository to get annotations for a check run.
OAuth Apps and authenticated users must have the repo
scope to get annotations for a check run in a private repository.
API docs: https://developer.github.com/v3/checks/runs/#list-annotations-for-a-check-run
Implementation
Stream<CheckRunAnnotation> listAnnotationsInCheckRun(
RepositorySlug slug, {
required CheckRun checkRun,
}) {
return PaginationHelper(github)
.objects<Map<String, dynamic>, CheckRunAnnotation>(
'GET',
'/repos/${slug.fullName}/check-runs/${checkRun.id}/annotations',
CheckRunAnnotation.fromJSON,
statusCode: StatusCodes.OK,
preview: _previewHeader,
);
}