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
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
Update a pull request review

 @param [Hash] params
 @option params [String] :state
   Required string - The review action (event) to perform; can be one of
   APPROVE, REQUEST_CHANGES, or COMMENT. If left blank, the API returns
   HTTP 422 (Unrecognizable entity) and the review is left PENDING
 @optoin params [String] :body
   Optional string

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

 @api public