class Github::PullRequests
def update(user_name, repo_name, request_id, params={})
"state" => "open",
"body" => "Update body",
"title" => "Amazing new title",
github.pull_requests.update '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(user_name, repo_name, request_id, params={}) set :user => user_name, :repo => repo_name assert_presence_of user, repo, request_id normalize! params filter! VALID_REQUEST_PARAM_NAMES, params # _merge_mime_type(:pull_request, params) assert_valid_values(VALID_REQUEST_PARAM_VALUES, params) patch_request("/repos/#{user}/#{repo}/pulls/#{request_id}", params) end