reRequestCheckSuite method
Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository.
This endpoint will trigger the check_suite
webhook event with the action rerequested.
When a check suite is rerequested
, its status
is reset to queued
and the conclusion
is cleared.
To rerequest a check suite, your GitHub App must have the checks:read
permission on a private repository or pull access to a public repository.
API docs: https://developer.github.com/v3/checks/suites/#rerequest-check-suite
Implementation
Future<void> reRequestCheckSuite(
RepositorySlug slug, {
required int checkSuiteId,
}) {
ArgumentError.checkNotNull(checkSuiteId);
return github.request(
'POST',
'repos/$slug/check-suites/$checkSuiteId/rerequest',
statusCode: StatusCodes.CREATED,
preview: _previewHeader,
);
}