def merge(*args)
      arguments(args, required: [:user, :repo, :number])
      params = arguments.params
      params['accept'] ||= PREVIEW_MEDIA

      put_request("/repos/#{arguments.user}/#{arguments.repo}/pulls/#{arguments.number}/merge", params)
    end
def merge(*args)
      arguments(args, required: [:user, :repo, :number])
      params = arguments.params
      params['accept'] ||= PREVIEW_MEDIA

      put_request("/repos/#{arguments.user}/#{arguments.repo}/pulls/#{arguments.number}/merge", params)
    end
:nodoc:
 Merge a pull request(Merge Button)

 @param [Hash] params
 @option params [String] :commit_title
   Optional string - The first line of the message that will be used for the merge commit
 @option params [String] :commit_message
   Optional string - The message that will be used for the merge commit
 @option params [String] :sha
   Optional string - The SHA that pull request head must match to allow merge
 @option params [String] :merge_method
   Optional string - Merge method to use.
   Valid values are merge, squash, and rebase. Default is merge.

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

 @api public