Sha256: 98ef2f6a63b874baed9670e68d843818ed7112de5cd5252680ad2a93e973980a

Contents?: true

Size: 661 Bytes

Versions: 12

Compression:

Stored size: 661 Bytes

Contents

desc "Create a pull request from the current branch to the application's designated deploy branch."
command 'pull-request' do |c|
  c.desc "Branch to create the pull request against"
  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 => 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
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
octopolo-1.8.1 lib/octopolo/commands/pull_request.rb
octopolo-1.8.0 lib/octopolo/commands/pull_request.rb
octopolo-1.7.1 lib/octopolo/commands/pull_request.rb
octopolo-1.7.0 lib/octopolo/commands/pull_request.rb
octopolo-1.6.0 lib/octopolo/commands/pull_request.rb
octopolo-1.5.3 lib/octopolo/commands/pull_request.rb
octopolo-1.5.2 lib/octopolo/commands/pull_request.rb
octopolo-1.5.1 lib/octopolo/commands/pull_request.rb
octopolo-1.5.0 lib/octopolo/commands/pull_request.rb
octopolo-1.4.0 lib/octopolo/commands/pull_request.rb
octopolo-1.3.0 lib/octopolo/commands/pull_request.rb
octopolo-1.2.1 lib/octopolo/commands/pull_request.rb