2020-07-03 05:08:53 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module NotifyHelper
|
|
|
|
def merge_request_reference_link(entity, *args)
|
|
|
|
link_to(entity.to_reference, merge_request_url(entity, *args))
|
|
|
|
end
|
|
|
|
|
2020-12-04 07:09:39 -05:00
|
|
|
def issue_reference_link(entity, *args, full: false)
|
|
|
|
link_to(entity.to_reference(full: full), issue_url(entity, *args))
|
2020-07-03 05:08:53 -04:00
|
|
|
end
|
|
|
|
end
|