lib/octopolo/commands/pull_request.rb in octopolo-1.2.0 vs lib/octopolo/commands/pull_request.rb in octopolo-1.2.1

- old
+ new

@@ -1,14 +1,11 @@ desc "Create a pull request from the current branch to the application's designated deploy branch." command 'pull-request' do |c| - config = Octopolo::Config.parse - user_config = Octopolo::UserConfig.parse - c.desc "Branch to create the pull request against" - c.flag [:d, :dest, :destination], :arg_name => "destination_branch", :default_value => config.deploy_branch + c.flag [:d, :dest, :destination], :arg_name => "destination_branch", :default_value => Octopolo.config.deploy_branch c.desc "Use $EDITOR to update PR description before creating" - c.switch [:e, :editor], :default_value => user_config.editor + c.switch [:e, :editor], :default_value => Octopolo.user_config.editor c.action do |global_options, options, args| require_relative '../scripts/pull_request' options = global_options.merge(options) Octopolo::Scripts::PullRequest.execute options[:destination], options