Sha256: f3c374a8f5e7b53a3398945dc9108af795197b498a536d513657929ddcb8361f

Contents?: true

Size: 854 Bytes

Versions: 11

Compression:

Stored size: 854 Bytes

Contents

desc 'review will push your latest feature branch changes to your remote repo and create a pull request'
arg_name 'Describe arguments to review here'
command :review do |c|
  c.desc 'push your latest feature branch changes to your remote repo and create a pull request against the destination branch'
  c.arg_name '[destination_branch] - the branch you want to merge your feature branch into'
  c.flag [:t, :title], default_value: 'last commit message'
  c.flag [:m, :message], default_value: 'title'
  c.action do |global_options,options,args|
    review_options = {
      'base' => args[0],
      'title' => global_options[:title],
      'body' => global_options[:message]
    }

    review_options['title'] ||=  GitReflow.get_first_commit_message
    review_options['body']  ||=  review_options['title']

    GitReflow.review review_options
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
git_reflow-0.5.3 lib/git_reflow/commands/review.rb
git_reflow-0.5.2 lib/git_reflow/commands/review.rb
git_reflow-0.5.1 lib/git_reflow/commands/review.rb
git_reflow-0.5.0 lib/git_reflow/commands/review.rb
git_reflow-0.4.2 lib/git_reflow/commands/review.rb
git_reflow-0.4.1 lib/git_reflow/commands/review.rb
git_reflow-0.4.0 lib/git_reflow/commands/review.rb
fb-git_reflow-0.3.6 lib/git_reflow/commands/review.rb
git_reflow-0.3.5 lib/git_reflow/commands/review.rb
git_reflow-0.3.4 lib/git_reflow/commands/review.rb
git_reflow-0.3.3 lib/git_reflow/commands/review.rb