Tentacat.Issues.Comments

Summary

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

Create a comment on an issue

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

Delete a comment on an issue by id

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

Get a single comment on an issue by its id

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

List comments on an issue. Issue Comments are ordered by ascending ID

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

List all comments on issues for a repository. By default, Issue Comments are ordered by ascending ID

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

Update a comment on an issue by id

Functions

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

Specs:

Create a comment on an issue.

Comment body example:

%{
  "body"      => "Nice change"
}

Example

Tentacat.Issues.Comments.create "elixir-lang", "elixir", 3970, comment_body

https://developer.github.com/v3/issues/comments/#create-a-comment

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

Specs:

Delete a comment on an issue by id.

Example

Tentacat.Issues.Comments.delete "elixir-lang", "elixir", 882148

https://developer.github.com/v3/issues/comments/#delete-a-comment

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

Specs:

Get a single comment on an issue by its id.

Example

Tentacat.Issues.Comments.find "elixir-lang", "elixir", 882148

https://developer.github.com/v3/issues/comments/#get-a-single-comment

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

Specs:

List comments on an issue. Issue Comments are ordered by ascending ID.

Example

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

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

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

Specs:

List all comments on issues for a repository. By default, Issue Comments are ordered by ascending ID.

Example

Tentacat.Issues.Comments.list_all "elixir-lang", "elixir"

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

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

Specs:

Update a comment on an issue by id.

Comment body example:

%{
  "body"      => "Nice change"
}

Example

Tentacat.Issues.Comments.update "elixir-lang", "elixir", 882148, comment_body

https://developer.github.com/v3/issues/comments/#edit-a-comment