Module B00_github.RepoSource

GitHub repositories.

Sourcetype t

The type for GitHub repositories.

Sourceval v : owner:string -> string -> t

repo ~owner name identifiers a GitHub repository.

Sourceval of_url : string -> (t, string) Stdlib.result

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

Sourceval owner : t -> string

owner r is r's owner.

Sourceval name : t -> string

name r is r's name.

Sourceval req_json_v3 : ?headers:B00_http.Http.headers -> B00_http.Httpr.t -> Auth.t -> t -> path:string -> B00_http.Http.meth -> v3_body -> (B00_serialk_json.Json.t, string) Stdlib.result

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

Sourceval query_v4 : B00_http.Httpr.t -> Auth.t -> t -> string -> (B00_serialk_json.Json.t, string) Stdlib.result

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