View Source Tentacat.Pulls.ReviewRequests (Tentacat v2.5.0)

Summary

Functions

Link to this function

create(client, owner, repo, number, reviewers)

View Source
@spec create(Tentacat.Client.t(), binary(), binary(), binary() | integer(), [binary()]) ::
  Tentacat.response()

Create a review request.

Review Request body example:

%{
  "reviewers" => ["octocat"]
}

Example

Tentacat.Pulls.ReviewRequests.create client, "elixir-lang", "elixir", body

More info at: https://developer.github.com/v3/pulls/review_requests/#create-a-review-request

Link to this function

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

View Source

List review requests in a pull request.

Example

Tentacat.Pulls.ReviewRequests.list "elixir-lang", "elixir", 1
Tentacat.Pulls.ReviewRequests.list client, "elixir-lang", "elixir", 1

More info at: https://developer.github.com/v3/pulls/review_requests/#list-review-requests

Link to this function

remove(client, owner, repo, number, reviewers)

View Source
@spec remove(Tentacat.Client.t(), binary(), binary(), binary() | integer(), [binary()]) ::
  Tentacat.response()

Delete a review request.

Example

Tentacat.Pulls.ReviewRequests.remove client, "elixir-lang", "elixir", 1, ["octocat"]

More info at: https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request