pingHook method
Pings the hook.
API docs: https://developer.github.com/v3/repos/hooks/#ping-a-hook
Implementation
Future<bool> pingHook(RepositorySlug slug, int id) async {
ArgumentError.checkNotNull(slug);
ArgumentError.checkNotNull(id);
return github
.request(
'POST',
'/repos/${slug.fullName}/hooks/$id/pings',
statusCode: StatusCodes.NO_CONTENT,
)
.then((response) => response.statusCode == StatusCodes.NO_CONTENT);
}