Sha256: 0c933f716a72ad5df994623dbca92913c137990109ba05401b550c8fb44d1064

Contents?: true

Size: 721 Bytes

Versions: 15

Compression:

Stored size: 721 Bytes

Contents

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.desc "Use $EDITOR to update PR description before creating"
  c.switch [:e, :editor], :default_value => 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

15 entries across 15 versions & 1 rubygems

Version Path
octopolo-1.2.0 lib/octopolo/commands/pull_request.rb
octopolo-1.1.1 lib/octopolo/commands/pull_request.rb
octopolo-1.1.0 lib/octopolo/commands/pull_request.rb
octopolo-1.0.2 lib/octopolo/commands/pull_request.rb
octopolo-1.0.1 lib/octopolo/commands/pull_request.rb
octopolo-1.0.0 lib/octopolo/commands/pull_request.rb
octopolo-0.4.1 lib/octopolo/commands/pull_request.rb
octopolo-0.4.0 lib/octopolo/commands/pull_request.rb
octopolo-0.3.6 lib/octopolo/commands/pull_request.rb
octopolo-0.3.5 lib/octopolo/commands/pull_request.rb
octopolo-0.3.4 lib/octopolo/commands/pull_request.rb
octopolo-0.3.3 lib/octopolo/commands/pull_request.rb
octopolo-0.3.2 lib/octopolo/commands/pull_request.rb
octopolo-0.3.1 lib/octopolo/commands/pull_request.rb
octopolo-0.3.0 lib/octopolo/commands/pull_request.rb