View Source Tentacat.Releases.Assets (Tentacat v2.4.0)

Summary

Functions

Delete a release asset.

Get a single release asset.

Get all assets for the given release.

Functions

Link to this function

delete(client, id, owner, repo)

View Source
@spec delete(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 Source
@spec edit(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 Source

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 Source

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