Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Access to the GitLab API.
val webhook_secret : t -> string
Webhook secret to validate payloads from GitLab.
module Status : sig ... end
Status associated with a single Commit.t
.
module Commit : sig ... end
A specific Git commit.
module Repo : sig ... end
A Project's repository on GitLab.
module Ref : sig ... end
A Ref as an indirect way of referring to a commit.
head_commit t repo
evaluates to the commit at the head of the default branch in repo
.
ci_refs t repo
evaluates to the list of branches and open PRs in repo
.
val refs : t -> Repo_id.t -> refs Current.Primitive.t
refs t repo
is the primitive for all the references in repo
.
This is the low-level API for getting the refs. It is used internally by ci_refs
and head_of
but in some cases you may want to use it directly, default_ref
and all_refs
will expose useful information for you. The result is cached (so calling it twice will return the same primitive).
default_ref refs
will return the full name of the repository's default branch ref.
all_refs refs
will return a map of all the repository's refs.
module Anonymous : sig ... end
Perform Anonymous request to GitLab.
val cmdliner : t Cmdliner.Term.t
Command-line options to generate a GitLab configuration t
.