pingHook method

Future<bool> pingHook(
  1. RepositorySlug slug,
  2. int id
)

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);
}