package gitlab

  1. Overview
  2. Docs
val list : ?token:Token.t -> project_id:int -> unit -> Gitlab_t.project_hooks Response.t Monad.t

list ?token ~project_id Request a list of a project’s hooks. See List project hooks.

val by_id : ?token:Token.t -> project_id:int -> hook_id:int -> unit -> Gitlab_t.project_hook Response.t Monad.t

by_id ?token ~project_id ~hook_id Get a single project hook. See Get project hook.

val create : token:Token.t -> project_id:int -> Gitlab_t.create_project_hook -> unit -> Gitlab_t.project_hook Response.t Monad.t

Creates a new webhook. See Add project hook.