Tentacat v1.2.0 Tentacat.Issues

Summary

Functions

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

Specs

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

Create an issue

Possible values for body:

  • [title: "title of issue"] (required)
  • [body: "body of issue"]
  • [assignee: "username"]
  • [milestone: 4]
  • [labels: ["bug", "frontend"]]

Example

Tentacat.Issues.create "elixir-lang", "elixir", %{"title" => "Issue", "body" => "Details"}
Tentacat.Issues.create "elixir-lang", "elixir", %{"title" => "Issue", "body" => "Details"}, client

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

filter(client \\ %Client{}, owner, repo, filters)

Specs

filter(Tentacat.Client.t, binary, binary, map) :: Tentacat.response

Filter issues

Example

Tentacat.Issues.filter "elixir-lang", "elixir", %{state: "open"}
Tentacat.Issues.filter "elixir-lang", "elixir", %{state: "open"}, client

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

find(client \\ %Client{}, owner, repo, number)

Specs

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

Get a single issue

Example

Tentacat.Issues.find "elixir-lang", "elixir", "2974"
Tentacat.Issues.find "elixir-lang", "elixir", "2974", client

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

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

Specs

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

List issues

Example

Tentacat.Issues.list "elixir-lang", "elixir"
Tentacat.Issues.list "elixir-lang", "elixir", client

More info at: https://developer.github.com/v3/issues/#list-issues

update(client \\ %Client{}, owner, repo, number, body)

Specs

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

Update an issue

Possible values for body:

  • [title: "title of issue"]
  • [body: "body of issue"]
  • [assignee: "username"]
  • [state: "closed"]
  • [milestone: 4]
  • [labels: ["bug", "frontend"]]

Example

Tentacat.Issues.update "elixir-lang", "elixir", "2974", %{"assignee" => "edgurgel"}
Tentacat.Issues.update "elixir-lang", "elixir", "2974", %{"state" => "closed"}, client

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