View Source Tentacat.Pulls.Reviews (Tentacat v2.5.0)
Summary
Functions
@spec create(Tentacat.Client.t(), binary(), binary(), binary() | integer(), map()) :: Tentacat.response()
Create a new review on a pull request.
Example
body = %{
"commit_id"=> "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
"body"=> "This is close to perfect! Please address the suggested inline change.",
"event"=> "REQUEST_CHANGES",
"comments"=> [
%{
"path"=> "file.md",
"position"=> 6,
"body"=> "Please add more information here, and fix this typo."
}
]
}
Tentacat.Pulls.Reviews.create "elixir-lang", "elixir", 1, body
Tentacat.Pulls.Reviews.create client, "elixir-lang", "elixir", 1, body
More info at: https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review
@spec list(Tentacat.Client.t(), binary(), binary(), binary() | integer()) :: Tentacat.response()
List reviews on a pull request.
Example
Tentacat.Pulls.Reviews.list "elixir-lang", "elixir", 1
Tentacat.Pulls.Reviews.list client, "elixir-lang", "elixir", 1
More info at: https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request