Merge branch 'bugfix/graph-friendly-notes-number' into 'master'
Print notes number explained in the graph. Closes #37224 See merge request !13949
This commit is contained in:
commit
983d6a76da
2 changed files with 7 additions and 1 deletions
|
@ -7,7 +7,8 @@ module GraphHelper
|
|||
refs << commit_refs.join(' ')
|
||||
|
||||
# append note count
|
||||
refs << "[#{@graph.notes[commit.id]}]" if @graph.notes[commit.id] > 0
|
||||
notes_count = @graph.notes[commit.id]
|
||||
refs << "[#{notes_count} #{pluralize(notes_count, 'note')}]" if notes_count > 0
|
||||
|
||||
refs
|
||||
end
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Show notes number more user-friendly in the graph
|
||||
merge_request: 13949
|
||||
author: Vladislav Kaverin
|
||||
type: changed
|
Loading…
Reference in a new issue