Method: Codebot::Formatters::Gollum#multi_page_summary
- Defined in:
- lib/codebot/formatters/gollum.rb
#multi_page_summary ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/codebot/formatters/gollum.rb', line 36 def multi_page_summary actions = [] counts = action_counts counts.each { |verb, num| actions << "#{verb} #{format_number num}" } changes = ary_to_sentence( actions, 'pushed an empty commit that did not affect any' ) singular_noun = counts.last.to_a.last.to_i.eql?(1) "#{changes} wiki #{singular_noun ? 'page' : 'pages'}" end |