View Source Tentacat.Releases (Tentacat v2.5.0)
Summary
Functions
Create a new release from the given tag.
Delete a release.
Edit an existing release.
Get a single release.
Get the latest release.
Get all releases from the given repository.
Functions
create(client \\ %Client{}, tag_name, owner, repo, options \\ %{})
View Source@spec create(Tentacat.Client.t(), binary(), binary(), binary(), map()) :: Tentacat.response()
Create a new release from the given tag.
Example
Tentacat.Releases.create(client, "v0.11.0", elixir-lang", "elixir")
More info at: http://developer.github.com/v3/repos/releases/#create-a-release
@spec delete(Tentacat.Client.t(), integer(), binary(), binary()) :: Tentacat.response()
Delete a release.
Example
Tentacat.Releases.delete(client, 95071, "elixir-lang", "elixir")
More info at: http://developer.github.com/v3/repos/releases/#delete-a-release
@spec edit(Tentacat.Client.t(), integer(), binary(), binary(), map()) :: Tentacat.response()
Edit an existing release.
Options
tag_name
- stringtarget_commitish
- stringname
- stringbody
- stringdraft
- booleanprerelease
- boolean
Example
Tentacat.Releases.edit(client, 95071, "elixir-lang", "elixir")
More info at: http://developer.github.com/v3/repos/releases/#edit-a-release
@spec find(Tentacat.Client.t(), any(), binary(), binary()) :: Tentacat.response()
Get a single release.
Example
Tentacat.Releases.find(client, 9949, "elixir-lang", "elixir")
More info at: http://developer.github.com/v3/repos/releases/#get-a-single-release
@spec latest(Tentacat.Client.t(), binary(), binary()) :: Tentacat.response()
Get the latest release.
Example
Tentacat.Releases.latest(client, "elixir-lang", "elixir")
More info at: http://developer.github.com/v3/repos/releases/#get-the-latest-release
@spec list(Tentacat.Client.t(), binary(), binary()) :: Tentacat.response()
Get all releases from the given repository.
Example
Tentacat.Releases.list(client, "elixir-lang", "elixir")
More info at: http://developer.github.com/v3/repos/releases/#list-releases-for-a-repository