Tentacat v0.7.2 Tentacat.Pulls.Comments
Summary
Functions
Create a comment for a pull request
Filter pull requests comments in a repository. Parameters are sort
, dir
, and since
Get a single comment for a repository by comment id
List comments on a pull request
List pull requests comments in a repository
Delete a pull request’s comment by it’s Id
Edit a comment for a pull request
Functions
Specs
create(binary, binary, integer | binary, list | map, Tentacat.Client.t) :: Tentacat.response
Create a comment for a pull request
Comment body example:
%{
"body" => "Nice change",
"commit_id" => "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"path" => "file1.txt",
"position" => 4
}
Example
Tentacat.Pulls.Comments.create "elixir-lang", "elixir", 2974, comment_body, client
More info at: https://developer.github.com/v3/pulls/comments/#create-a-comment
Specs
filter_all(binary, binary, Keyword.t | map, Tentacat.Client.t) :: Tentacat.response
Filter pull requests comments in a repository. Parameters are sort
, dir
, and since
.
Example
Tentacat.Pulls.Comments.filter_all "elixir-lang", "elixir", %{sort: "updated", dir: "desc"}
Tentacat.Pulls.Comments.filter_all "elixir-lang", "elixir", %{sort: "updated", dir: "desc"}, client
More info at: https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository
Specs
find(binary, binary, binary | integer, Tentacat.Client.t) :: Tentacat.response
Get a single comment for a repository by comment id
Example
Tentacat.Pulls.Comments.find "elixir-lang", "elixir", "22377723"
Tentacat.Pulls.Comments.find "elixir-lang", "elixir", "22377723", client
More info at: https://developer.github.com/v3/pulls/comments/#get-a-single-comment
Specs
list(binary, binary, binary | integer, Tentacat.Client.t) :: Tentacat.response
List comments on a pull request
Example
Tentacat.Pulls.Comments.list "elixir-lang", "elixir", "2974"
Tentacat.Pulls.Comments.list "elixir-lang", "elixir", "2974", client
More info at: https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request
Specs
list_all(binary, binary, Tentacat.Client.t) :: Tentacat.response
List pull requests comments in a repository
Example
Tentacat.Pulls.Comments.list_all "elixir-lang", "elixir"
Tentacat.Pulls.Comments.list_all "elixir-lang", "elixir", client
More info at: https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository
Specs
remove(binary, binary, binary | integer, Tentacat.Client.t) :: Tentacat.response
Delete a pull request’s comment by it’s Id.
Example
Tentacat.Pulls.Comments.remove "elixir-lang", "elixir", "22377723", client
More info at: https://developer.github.com/v3/pulls/comments/#delete-a-comment
Specs
update(binary, binary, binary | integer, list, Tentacat.Client.t) :: Tentacat.response
Edit a comment for a pull request
Example
Tentacat.Pulls.Comments.update "elixir-lang", "elixir", "22377723", comment_body, client
More info at: https://developer.github.com/v3/pulls/comments/#edit-a-comment