blob: 552456f5836a442fae097cdcb5e5e6a8d5fd3bb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# frozen_string_literal: true
module Gitlab
module SlashCommands
module Presenters
class IssueNew < Presenters::Base
include Presenters::IssueBase
def present
in_channel_response(response_message)
end
private
def fallback_message
"New issue #{issue.to_reference}: #{issue.title}"
end
def fields_with_markdown
%i(title pretext text fields)
end
def pretext
"I created an issue on #{author_profile_link}'s behalf: *#{issue.to_reference}* in #{project_link}"
end
end
end
end
end
|