Sha256: b111f6c51c73a4de0e8e485e5690901716754b1d0ff5df05d1970e6f5593fcd1
Contents?: true
Size: 837 Bytes
Versions: 2
Compression:
Stored size: 837 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 "Pass -x to skip the prompt and infer from branch. Expects the branch to be in this format: JIRA-123_describe_pr" c.switch [:x, :expedite], :arg_name => "expedite" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octopolo-1.11.0 | lib/octopolo/commands/pull_request.rb |
octopolo-1.9.0 | lib/octopolo/commands/pull_request.rb |