Convenience functions for the GitHub Releases REST API.
Thin wrappers over GhEx.REST that return the same {:ok, body, meta} /
{:error, reason} shape; opts pass through to Req.
Summary
Functions
Creates a release. attrs is the JSON body (tag_name, name, body, draft, prerelease, ...).
Deletes a release.
Gets a release by id.
Gets a release by tag name.
Gets the latest published release.
Lists releases for a repository.
Updates a release.
Types
Functions
@spec create(GhEx.Client.t(), String.t(), String.t(), map(), keyword()) :: GhEx.REST.result()
Creates a release. attrs is the JSON body (tag_name, name, body, draft, prerelease, ...).
@spec delete(GhEx.Client.t(), String.t(), String.t(), id(), keyword()) :: GhEx.REST.result()
Deletes a release.
@spec get(GhEx.Client.t(), String.t(), String.t(), id(), keyword()) :: GhEx.REST.result()
Gets a release by id.
@spec get_by_tag(GhEx.Client.t(), String.t(), String.t(), String.t(), keyword()) :: GhEx.REST.result()
Gets a release by tag name.
@spec get_latest(GhEx.Client.t(), String.t(), String.t(), keyword()) :: GhEx.REST.result()
Gets the latest published release.
@spec list(GhEx.Client.t(), String.t(), String.t(), keyword()) :: GhEx.REST.result()
Lists releases for a repository.
@spec update(GhEx.Client.t(), String.t(), String.t(), id(), map(), keyword()) :: GhEx.REST.result()
Updates a release.