Method: Wheelbarrow::CLI#pull_request

Defined in:
lib/wheelbarrow/cli.rb

#pull_requestObject



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/wheelbarrow/cli.rb', line 24

def pull_request
  Utils.ensure_within_git! do
    args = { title: options[:title],
             description: options[:description],
             target_branch: options[:target_branch] }

    pr_response = Bucketeer.instance.send_pull_request! args
    puts pretty_pr_status(pr_response)
  end
rescue => e
  puts e.message
end