Sha256: 349a23d3786249d82d4695d53d9ff0b36766362bd4accc6de60551dd6d09a5f5
Contents?: true
Size: 766 Bytes
Versions: 4
Compression:
Stored size: 766 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] c.flag [:m, :message] c.action do |global_options,options,args| if options[:title] || options[:message] review_options = { :base => args[0], :title => options[:title], :body => options[:message] } else review_options = { :base => args[0] } end GitReflow.review(review_options) end end
Version data entries
4 entries across 4 versions & 1 rubygems