2019-11-06 04:06:23 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module SlashCommands
|
|
|
|
module Presenters
|
|
|
|
class IssueComment < Presenters::Base
|
|
|
|
include Presenters::NoteBase
|
|
|
|
|
|
|
|
def present
|
2019-11-29 10:06:43 -05:00
|
|
|
ephemeral_response(response_message)
|
2019-11-06 04:06:23 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2019-11-29 10:06:43 -05:00
|
|
|
def fallback_message
|
|
|
|
"New comment on #{issue.to_reference}: #{issue.title}"
|
2019-11-06 04:06:23 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def pretext
|
|
|
|
"I commented on an issue on #{author_profile_link}'s behalf: *#{issue.to_reference}* in #{project_link}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|