14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/gitlab/triage/action/summarize.rb', line 14
def perform
policy.summary = {
web_url: '[the-created-issue-url]',
project_id: 'some-id',
iid: 'some-iid',
type: SUMMARY_RESOURCE_TYPE
}.with_indifferent_access
if group_summary_without_destination?
puts Gitlab::Triage::UI.warn("No issue will be created: No summary destination specified when source is 'groups'.")
return
end
puts "The following issue would be created in project `#{destination}` for the rule **#{policy.name}**:\n\n"
puts ">>>"
puts "* Title: #{issue.title}"
puts "* Description: #{issue.description}"
puts ">>>"
end
|