listHooks method
Lists the hooks of the specified repository.
API docs: https://developer.github.com/v3/repos/hooks/#list-hooks
Implementation
Stream<Hook> listHooks(RepositorySlug slug) {
ArgumentError.checkNotNull(slug);
return PaginationHelper(github).objects<Map<String, dynamic>, Hook>(
'GET',
'/repos/${slug.fullName}/hooks',
(i) => Hook.fromJson(i)..repoName = slug.fullName,
);
}