Method: Github::Client::PullRequests::Reviews#update

Defined in:
lib/github_api/client/pull_requests/reviews.rb

#update(*args) ⇒ Object

Update a pull request review

Examples:

github = Github.new oauth_token: '...'
github.pull_requests.reviews.update 'user-name', 'repo-name', 'number', 'review-id'
  body: "Update body",
  event: "APPROVE"

Parameters:



112
113
114
115
116
117
118
119
# File 'lib/github_api/client/pull_requests/reviews.rb', line 112

def update(*args)
  arguments(args, required: [:user, :repo, :number, :id])
  params = arguments.params

  params["accept"] ||= PREVIEW_MEDIA

  post_request("/repos/#{arguments.user}/#{arguments.repo}/pulls/#{arguments.number}/reviews/#{arguments.id}/events", params)
end