package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

dune-project
 Dependency

Authors

Maintainers

Sources

b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0

doc/b0.std/B0_github/Release/index.html

Module B0_github.ReleaseSource

Repository releases.

Releases

Sourcetype t

The type for releases.

Sourceval id : t -> int

id r is the id of the release.

Sourceval tag_name : t -> string

tag_name r is the tag name of the release.

Sourceval body : t -> string

body r is the description of the release.

Sourceval html_url : t -> string

html_url t is the issue's HTML url.

Sourceval assets_url : t -> string

assets_url t is the issue's assets url.

pp is a formatter for issues.

Sourceval pp_short : t B0_std.Fmt.t

pp_short is a short formatter for issues.

Requests

Sourceval create : B0_http.Http_client.t -> Auth.t -> Repo.t -> tag_name:string -> body:string -> unit -> (t, string) result

create auth repo ~tag_name ~body () creates a new release in repository repo with given tag_name and body description.

Sourceval get : B0_http.Http_client.t -> Auth.t -> Repo.t -> tag_name:string -> unit -> (t, string) result

get auth repo ~tag_name () gets the release with given tag_name in repo tag_name.

Sourceval upload_asset : B0_http.Http_client.t -> Auth.t -> Repo.t -> t -> content_type:string -> name:string -> string -> (unit, string) result

upload_asset auth repo r ~content_type ~name asset uploads assets content asset with file name name and content type content_type in release r of repo r.