Tentacat v2.2.0 Tentacat.Pulls.Reviews View Source

Link to this section Summary

Functions

Create a new review on a pull request

List reviews on a pull request

Link to this section Functions

Link to this function

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

View Source

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

Link to this function

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

View Source

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