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:
Rémy Coutable 2017-09-08 10:54:33 +00:00
commit 983d6a76da
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -0,0 +1,5 @@
---
title: Show notes number more user-friendly in the graph
merge_request: 13949
author: Vladislav Kaverin
type: changed