package github

  1. Overview
  2. Docs

Module Make.LabelSource

The Label module exposes Github's labels API.

Sourceval for_repo : ?token:Token.t -> user:string -> repo:string -> unit -> Github_t.label Stream.t

for_repo ~user ~repo () is a stream of all labels in repo user/repo.

Sourceval get : ?token:Token.t -> user:string -> repo:string -> name:string -> unit -> Github_t.label Response.t Monad.t

get ~user ~repo ~name () is the label name in the repo user/repo.

Sourceval create : ?token:Token.t -> user:string -> repo:string -> label:Github_t.new_label -> unit -> Github_t.label Response.t Monad.t

create ~user ~repo ~label () is the newly created label label in the repo user/repo.

Sourceval update : ?token:Token.t -> user:string -> repo:string -> name:string -> label:Github_t.new_label -> unit -> Github_t.label Response.t Monad.t

update ~user ~repo ~name () is the newly updated label name with properties label in the repo user/repo.

Sourceval delete : ?token:Token.t -> user:string -> repo:string -> name:string -> unit -> unit Response.t Monad.t

delete ~user ~repo ~name () activates after the label name in the repo user/repo has been removed.

OCaml

Innovation. Community. Security.