Module: Zenflow::BranchCommands::Compare
- Included in:
- Zenflow::BranchCommand
- Defined in:
- lib/zenflow/helpers/branch_commands/compare.rb
Class Method Summary collapse
Class Method Details
.included(thor) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/zenflow/helpers/branch_commands/compare.rb', line 5 def self.included(thor) thor.class_eval do desc "compare", "Launch GitHub compare view against the latest code" def compare branch_name Zenflow::Log("Opening GitHub compare view for #{branch(:source)}...#{flow}/#{branch_name}") Zenflow::Shell["open https://github.com/#{Zenflow::Repo.slug}/compare/#{branch(:source)}...#{flow}/#{branch_name}"] end end end |