Module B0_github.Release
Repository releases.
Releases
val id : t -> intid ris the id of the release.
val tag_name : t -> stringtag_name ris the tag name of the release.
val body : t -> stringbody ris the description of the release.
val html_url : t -> stringhtml_url tis the issue's HTML url.
val assets_url : t -> stringassets_url tis the issue's assets url.
val pp : t B0_std.Fmt.tppis a formatter for issues.
val pp_short : t B0_std.Fmt.tpp_shortis a short formatter for issues.
Requests
val create : B0_web.Http.t -> auth -> Repo.t -> tag_name:string -> body:string -> unit -> (t, string) Stdlib.resultcreate auth repo ~tag_name ~body ()creates a new release in repositoryrepowith giventag_nameandbodydescription.
val get : B0_web.Http.t -> auth -> Repo.t -> tag_name:string -> unit -> (t, string) Stdlib.resultget auth repo ~tag_name ()gets the release with giventag_namein repotag_name.
val upload_asset : B0_web.Http.t -> auth -> Repo.t -> t -> content_type:string -> name:string -> string -> (unit, string) Stdlib.resultupload_asset auth repo r ~content_type ~name assetuploads assets contentassetwith file namenameand content typecontent_typein releaserof repor.