Sha256: 2b95c5ead272d183b483f9ad2dfba36a9cc5db079558a88e8a219b010f73cfd7
Contents?: true
Size: 860 Bytes
Versions: 3
Compression:
Stored size: 860 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| if global_options[:title] || global_options[:message] review_options = { 'base' => args[0], 'title' => global_options[:title], 'body' => global_options[:message] } else review_options = { 'base' => args[0] } end GitReflow.review(review_options) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
git_reflow-0.7.5 | lib/git_reflow/commands/review.rb |
git_reflow-0.7.4 | lib/git_reflow/commands/review.rb |
git_reflow-0.7.2 | lib/git_reflow/commands/review.rb |