Module B0_github.Repo

GitHub repositories.

type t

The type for GitHub repositories.

val make : owner:string -> string -> t

make ~owner name identifiers a GitHub repository.

val of_url : B0_std.Url.t -> (t, string) Stdlib.result

of_url url parses an owner and repo name from the first two segments of url's path.

val owner : t -> string

owner r is r's owner.

val name : t -> string

name r is r's name.

val req_json_v3 : ?headers:B0_http.Http.headers -> B0_http.Http_client.t -> Auth.t -> t -> path:string -> B0_http.Http.method' -> v3_body -> (B0_json.Json.t, string) Stdlib.result

req_json_v3 is like B0_github.req_json_v3 but performs given the root subpath on the given repo.

val query_v4 : B0_http.Http_client.t -> Auth.t -> t -> string -> (B0_json.Json.t, string) Stdlib.result

query_v4 auth r q performs the subgraph query q on repo r using authentication auth.