package gitlab

  1. Overview
  2. Docs
val branches : ?token:Token.t -> project_id:int -> ?search:string -> unit -> Gitlab_t.branch_full Stream.t

branches ?token ~project_id lists repository branches from a project, sorted by name alphabetically. Supply a token to access private projects.

See List repository branches.

val branch : ?token:Token.t -> project_id:int -> branch:string -> unit -> Gitlab_t.branch_full Response.t Monad.t

branch ?token ~name gets a single project repository branch. Supply a token to access private projects.

See Get a single repository branch.

val create : token:Token.t -> project_id:int -> branch:string -> ref:string -> unit -> Gitlab_t.branch_full Response.t Monad.t

create ~token ~branch ~ref Create a new branch in the repository.

See Create repository branch.

val delete : token:Token.t -> project_id:int -> branch:string -> unit -> unit Response.t Monad.t

delete ~token ~branch Delete a branch in the repository.

See Delete repository branch.

val delete_merged : token:Token.t -> project_id:int -> unit -> unit Response.t Monad.t

delete ~token ~branch Delete a branch in the repository.

See Delete merged repository branches.

OCaml

Innovation. Community. Security.