diff options
Diffstat (limited to 'app/presenters/commit_presenter.rb')
-rw-r--r-- | app/presenters/commit_presenter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/presenters/commit_presenter.rb b/app/presenters/commit_presenter.rb index 2cb88179845..2879326ff8a 100644 --- a/app/presenters/commit_presenter.rb +++ b/app/presenters/commit_presenter.rb @@ -25,6 +25,10 @@ class CommitPresenter < Gitlab::View::Presenter::Delegated commit.pipelines.any? end + def tags_for_display + commit.referenced_by&.map { |tag_name| Gitlab::Git.ref_name(tag_name) } + end + def signature_html return unless commit.has_signature? |