Tentacat v2.2.0 Tentacat.Releases.Assets View Source
Link to this section Summary
Functions
Delete a release asset
Edit a release asset
Get a single release asset
Get all assets for the given release
Link to this section Functions
Link to this function
delete(client, id, owner, repo)
View Sourcedelete(Tentacat.Client.t(), integer(), binary(), binary()) :: Tentacat.response()
Delete a release asset
Example
Tentacat.Releases.Assets.delete(client, "23", "elixir-lang", "elixir")
More info at: http:\developer.github.com/v3/repos/releases/#delete-a-release-asset
Link to this function
edit(client, name, id, owner, repo, options \\ [])
View Sourceedit(Tentacat.Client.t(), binary(), integer(), binary(), binary(), list()) :: Tentacat.response()
Edit a release asset
Example
Tentacat.Releases.Assets.edit(client, "my-release.tar.gz", 23, "elixir-lang", "elixir", label: "NEW LABEL!")
Options
label
- string
More info at: http:\developer.github.com/v3/repos/releases/#edit-a-release-asset
Link to this function
find(client \\ %Client{}, id, owner, repo)
View Sourcefind(Tentacat.Client.t(), integer(), binary(), binary()) :: Tentacat.response()
Get a single release asset
Example
Tentacat.Releases.Assets.find(23, "elixir-lang", "elixir", client)
More info at: http:\developer.github.com/v3/repos/releases/#get-a-single-release-asset
Link to this function
list(client \\ %Client{}, id, owner, repo)
View Sourcelist(Tentacat.Client.t(), integer(), binary(), binary()) :: Tentacat.response()
Get all assets for the given release
Example
Tentacat.Releases.Assets.list(95071, "elixir-lang", "elixir", client)
More info at: http:\developer.github.com/v3/repos/releases/#list-assets-for-a-release