Tentacat v0.7.2 Tentacat.Repositories.Labels

Summary

Functions

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

Specs

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

Creates a new label on a repository

Possible values for body:

  • [name: "name of label"] (required)
  • [color: "color of label"] (required)

Example

Tentacat.Repositories.Labels.create "elixir-lang", "elixir", %{name: "Important", color: "f29513"}

More info at: https://developer.github.com/v3/issues/labels/#create-a-label

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

Specs

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

Delete a label on a repository

Example

Tentacat.Repositories.Labels.delete "elixir-lang", "elixir", "Important"

More info at: https://developer.github.com/v3/issues/labels/#delete-a-label

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

Specs

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

Find a label on a repository

Example

Tentacat.Repositories.Labels.find "elixir-lang", "elixir", "WIP"

More info at: https://developer.github.com/v3/issues/labels/#get-a-single-label

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

Specs

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

List labels on a repository

Example

Tentacat.Repositories.Labels.list "elixir-lang", "elixir"

More info at: https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository

update(owner, repo, name, body, client \\ %Tentacat.Client{})

Specs

update(binary, binary, binary, list | map, Tentacat.Client.t) :: Tentacat.response

Update a label on a repository

Possible values for body:

  • [name: "name of label"] (required)
  • [color: "color of label"] (required)

Example

Tentacat.Repositories.Labels.update "elixir-lang", "elixir", "Important", %{color: "000000"}

More info at: https://developer.github.com/v3/issues/labels/#update-a-label