package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

Dune Dependency

Authors

Maintainers

Sources

b0-0.0.4.tbz
sha512=665735c8b7a8674201be765bdd676a18d1e38eff35de9d44c3dc15e2bfed2247e8963c9a32ae62d9ca2d6cd1edebd849aac29fdd5a846c14a30feea3edfc0601

doc/b0_b00_kit/B00_github/index.html

Module B00_github

GitHub interaction.

GitHub authentication

module Auth : sig ... end

GitHub API requests

type content_type = string

The type for content types.

type v3_body = [
  1. | `Json of B00_serialk_json.Jsong.t
  2. | `Other of content_type * string
  3. | `Empty
]

The type for GitHub V3 request bodies. Either JSON or something else tagged with its content type or nothing.

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

req_json_v3 auth path m ~headers body performs the request for json on path using method m, additional headers headers, body body and authentication auth.

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

query_v4 auth q performs the the GitHub GraphQL V4 query q using authentication auth.

Higher-level interface

module Repo : sig ... end

GitHub repositories.

module Issue : sig ... end

Repository issues.

module Release : sig ... end

Repository releases.

module Pages : sig ... end

Publish to GitHub pages.

OCaml

Innovation. Community. Security.