docs: def get_repo_hooks(self, auth, username, repo_name):
          """
          Returns all hooks of repository with name ``repo_name`` owned by
          the user with username ``username``.
  
          :param auth.Authentication auth: authentication object
          :param str username: username of owner of repository
          :param str repo_name: name of repository
          :return: a list of hooks for the specified repository
          :rtype: List[GogsRepo.Hooks]
          :raises NetworkFailure: if there is an error communicating with the server
          :raises ApiFailure: if the request cannot be serviced
          """
          path = "/repos/{u}/{r}/hooks".format(u=username, r=repo_name)
          response = self.get(path, auth=auth)
          return [GogsRepo.Hook.from_json(hook) for hook in response.json()]