Sha256: de1c40e7c63b8d2e17d8659142361c070705a706d6ca8509e8022883a577220e

Contents?: true

Size: 541 Bytes

Versions: 3

Compression:

Stored size: 541 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

  c.desc "Branch to create the pull request against"
  c.flag [:d, :dest, :destination], :arg_name => "destination_branch", :default_value => config.deploy_branch

  c.action do |global_options, options, args|
    require_relative '../scripts/pull_request'
    options = global_options.merge(options)
    Octopolo::Scripts::PullRequest.execute options[:destination]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
octopolo-0.2.1 lib/octopolo/commands/pull_request.rb
octopolo-0.1.4 lib/octopolo/commands/pull_request.rb
octopolo-0.2.0 lib/octopolo/commands/pull_request.rb