summaryrefslogtreecommitdiff
path: root/app/helpers/notify_helper.rb
blob: db7527d9d58cf65863c6deb81e7f7a409ffe3820 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module NotifyHelper
  def merge_request_reference_link(entity, *args)
    link_to(entity.to_reference, merge_request_url(entity, *args))
  end

  def issue_reference_link(entity, *args, full: false)
    link_to(entity.to_reference(full: full), issue_url(entity, *args))
  end
end