debian-mirror-gitlab/lib/gitlab/slash_commands/presenters/issue_comment.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
551 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
module Gitlab
module SlashCommands
module Presenters
class IssueComment < Presenters::Base
include Presenters::NoteBase
def present
2020-01-01 13:55:28 +05:30
ephemeral_response(response_message)
2019-12-26 22:10:19 +05:30
end
private
2020-01-01 13:55:28 +05:30
def fallback_message
"New comment on #{issue.to_reference}: #{issue.title}"
2019-12-26 22:10:19 +05:30
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