Tentacat v0.7.2 Tentacat.Releases

Summary

Functions

create(tag_name, owner, repo, client \\ %Tentacat.Client{}, options \\ [])

Specs

create(binary, binary, binary, Tentacat.Client.t, list) :: Tentacat.response

Create a new release from the given tag

Example

Tentacat.Releases.create("v0.11.0", elixir-lang", "elixir", client)

More info at: http:\developer.github.com/v3/repos/releases/#create-a-release

delete(id, owner, repo, client \\ %Tentacat.Client{})

Specs

delete(integer, binary, binary, Tentacat.Client.t) :: Tentacat.response

Delete a release

Example

Tentacat.Releases.delete(95071, "elixir-lang", "elixir", client)

More info at: http:\developer.github.com/v3/repos/releases/#delete-a-release

edit(id, owner, repo, client \\ %Tentacat.Client{}, options \\ [])

Specs

edit(integer, binary, binary, Tentacat.Client.t, list) :: Tentacat.response

Edit an existing release

Options

  • tag_name - string
  • target_commitish - string
  • name - string
  • body - string
  • draft - boolean
  • prerelease - boolean

Example

Tentacat.Releases.edit(95071, "elixir-lang", "elixir", client)

More info at: http:\developer.github.com/v3/repos/releases/#edit-a-release

find(id, owner, repo, client \\ %Tentacat.Client{})

Specs

find(any, binary, binary, Tentacat.Client.t) :: Tentacat.response

Get a single release

Example

Tentacat.Releases.find(9949, "elixir-lang", "elixir", client)

More info at: http:\developer.github.com/v3/repos/releases/#get-a-single-release

latest(owner, repo, client \\ %Tentacat.Client{})

Specs

latest(binary, binary, Tentacat.Client.t) :: Tentacat.response

Get the latest release

Example

Tentacat.Releases.latest("elixir-lang", "elixir", client)

More info at: http:\developer.github.com/v3/repos/releases/#get-the-latest-release

list(owner, repo, client \\ %Tentacat.Client{})

Specs

list(binary, binary, Tentacat.Client.t) :: Tentacat.response

Get all releases from the given repository

Example

Tentacat.Releases.list("elixir-lang", "elixir", client)

More info at: http:\developer.github.com/v3/repos/releases/#list-releases-for-a-repository