Method: Octokit::Client::Pulls#create_pull_request
- Defined in:
- lib/octokit/client/pulls.rb
#create_pull_request(repo, base, head, title, body, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/octokit/client/pulls.rb', line 4 def create_pull_request(repo, base, head, title, body, ={}) pull = { :base => base, :head => head, :title => title, :body => body, } post("pulls/#{Repository.new(repo)}", .merge({:pull => pull}))['pulls'] end |