package gitlab

  1. Overview
  2. Docs

Milestone operates on a Project's milestones. There is a separate Group Milestone module.

val milestones : ?token:Token.t -> project_id:int -> ?state:Gitlab_t.milestone_state -> ?title:string -> ?search:string -> unit -> Gitlab_t.milestones Response.t Monad.t

milestones ~project_id returns a list of project milestones.

See List project milestones.

val milestone : ?token:Token.t -> project_id:int -> milestone_id:int -> unit -> Gitlab_t.milestone Response.t Monad.t

milestone ~project_id ~milestone_id get a single project milestone.

See Get a single milestone.

val create : token:Token.t -> project_id:int -> Gitlab_t.new_milestone -> unit -> Gitlab_t.milestone Response.t Monad.t

create ~project_id ~title create a project milestone.

See Create a new milestone.

val update : token:Token.t -> project_id:int -> milestone_id:int -> ?title:string -> ?description:string -> ?due_date:string -> ?start_date:string -> ?state_event:Gitlab_t.milestone_state -> unit -> Gitlab_t.milestone Response.t Monad.t

update ~project_id ~milestone_id update an existing milestone.

See Edit a milestone.

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

delete ~project_id ~milestone_id delete a project milestone.

See Delete a milestone.

OCaml

Innovation. Community. Security.