Tentacat v1.2.0 Tentacat.Issues.Labels

Summary

Functions

add(client \\ %Client{}, owner, repo, issue_id, labels)

Specs

add(Tentacat.Client.t, binary, binary, binary | integer, [binary]) :: Tentacat.response

Add labels to an issue

Example

Tentacat.Issues.Labels.list "elixir-lang", "elixir", 3970

More info at: https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue

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

Specs

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

List labels on an issue

Example

Tentacat.Issues.Labels.list "elixir-lang", "elixir", 3970

More info at: https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue

remove(client \\ %Client{}, owner, repo, issue_id, label)

Specs

remove(Tentacat.Client.t, binary, binary, binary | integer, binary) :: Tentacat.response

Remove a label from an issue

Example

Tentacat.Issues.Labels.remove "elixir-lang", "elixir", 3970, "Important"

More info at: https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue