Method: Github::Client::PullRequests#update

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

#update(*args) ⇒ Object

Update a pull request

Examples:

github = Github.new oauth_token: '...'
github.pull_requests.update 'user-name', 'repo-name', 'number'
  title: "Amazing new title",
  body: "Update body",
  state: "open"

Parameters:



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

def update(*args)
  arguments(args, required: [:user, :repo, :number])

  patch_request("/repos/#{arguments.user}/#{arguments.repo}/pulls/#{arguments.number}", arguments.params)
end