deleteHook method

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

Implementation

Future<bool> deleteHook(RepositorySlug slug, int id) async {
  ArgumentError.checkNotNull(slug);
  ArgumentError.checkNotNull(id);
  return github
      .request(
        'DELETE',
        '/repos/${slug.fullName}/hooks/$id',
        statusCode: StatusCodes.NO_CONTENT,
      )
      .then((response) => response.statusCode == StatusCodes.NO_CONTENT);
}