getCheckSuite method
Gets a single check suite using its id
.
GitHub Apps must have the checks:read
permission on a private repository or pull access to a public repository to get check suites.
OAuth Apps and authenticated users must have the repo
scope to get check suites in a private repository.
API docs: https://developer.github.com/v3/checks/suites/#get-a-single-check-suite
Implementation
Future<CheckSuite> getCheckSuite(
RepositorySlug slug, {
required int checkSuiteId,
}) async {
ArgumentError.checkNotNull(checkSuiteId);
return github.requestJson(
'GET',
'repos/$slug/check-suites/$checkSuiteId',
convert: CheckSuite.fromJson,
preview: _previewHeader,
statusCode: StatusCodes.OK,
);
}