Current_github.ApiAccess to the GitHub API.
val webhook_secret : t -> stringWebhook secret to validate payloads from GitHub
module Status : sig ... endmodule CheckRunStatus : sig ... endmodule Commit : sig ... endmodule CheckRun : sig ... endmodule Repo : sig ... endmodule Ref : sig ... endval of_oauth : token:string -> webhook_secret:string -> tof_oauth ~token ~webhook_secret is a configuration that authenticates to GitHub using token.
val exec_graphql :
?variables:(string * Yojson.Safe.t) list ->
t ->
string ->
Yojson.Safe.t Lwt.texec_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 -> refs Current.Primitive.trefs 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).
val default_ref : refs -> stringdefault_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 type GRAPHQL_QUERY = sig ... endA GraphQL query to be monitored for changes
module Monitor (Query : GRAPHQL_QUERY) : sig ... endMonitor a GraphQL query for changes on webhooks.
module Anonymous : sig ... endPerform Anonymous request to GitHub.
val cmdliner : t Cmdliner.Term.tCommand-line options to generate a GitHub configuration.
val cmdliner_opt : t option Cmdliner.Term.tLike cmdliner, but the argument is optional.