class Github::PullRequests
def update_request(user_name, repo_name, request_id, params={})
"state" => "open",
"body" => "Update body",
"title" => "Amazing new title",
@github.pull_requests.update_request 'user-name', 'repo-name', 'request-id'
@github = Github.new :oauth_token => '...'
= Examples
* :state - Optional string - State of this Pull Request. Valid values are open and closed.
* :body - Optional string
* :title - Optional string
= Inputs
Update a pull request
def update_request(user_name, repo_name, request_id, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _validate_presence_of request_id _normalize_params_keys(params) _filter_params_keys(VALID_REQUEST_PARAM_NAMES, params) _validate_params_values(VALID_REQUEST_PARAM_VALUES, params) patch("/repos/#{user}/#{repo}/pulls/#{request_id}", params) end