Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module Status : sig ... end
module Commit : sig ... end
module Repo : sig ... end
module Ref : sig ... end
val of_oauth : string -> t
of_oauth token
is a configuration that authenticates to GitHub using token
.
val exec_graphql :
?variables:(string * Yojson.Safe.t) list ->
t ->
string ->
Yojson.Safe.t Lwt.t
exec_graphql t query
executes query
on GitHub.
head_commit t repo
evaluates to the commit at the head of the default branch in repo
.
head_of t repo id
evaluates to the commit at the head of id
in repo
. e.g. head_of t repo (`Ref "refs/heads/master")
ci_refs t repo
evaluates to the list of branches and open PRs in repo
, excluding gh-pages.
val refs : t -> Repo_id.t -> Commit.t Ref_map.t 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. The result is cached (so calling it twice will return the same primitive).
module Anonymous : sig ... end
val cmdliner : t Cmdliner.Term.t
Command-line options to generate a GitHub configuration.