Method: Github::PullRequests#merge

Defined in:
lib/github_api/pull_requests.rb

#merge(*args) ⇒ Object

Merge a pull request(Merge Button)

Inputs

<tt>:commit_message</tt> - Optional string -
                         The message that will be used for the merge commit

Examples

github = Github.new
github.pull_requests.merge 'user-name', 'repo-name', 'number'


183
184
185
186
187
188
189
# File 'lib/github_api/pull_requests.rb', line 183

def merge(*args)
  arguments(args, :required => [:user, :repo, :number]) do
    sift VALID_REQUEST_PARAM_NAMES
  end

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