Class: Schmersion::Helpers
- Inherits:
-
Object
- Object
- Schmersion::Helpers
- Defined in:
- lib/schmersion/helpers.rb
Class Method Summary collapse
Class Method Details
.print_commit_list(commits, prefix: '') ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/schmersion/helpers.rb', line 8 def print_commit_list(commits, prefix: '') commits.each do |commit| print prefix print '[' print commit.ref[0, 10].blue print ']' print ' ' print commit..type.green if commit..scope print '(' print commit..scope.magenta print ')' end if commit..breaking_change? print ' ! '.white.on_red end print ': ' puts commit..description end end |