Class: Gitlab::Triage::Action::WorkItemStatus::Dry

Inherits:
WorkItemStatus
  • Object
show all
Defined in:
lib/gitlab/triage/action/work_item_status.rb

Instance Method Summary collapse

Instance Method Details

#actObject



12
13
14
15
16
# File 'lib/gitlab/triage/action/work_item_status.rb', line 12

def act
  puts "The following work items would have their status updated for the rule **#{policy.name}**:\n\n"

  super
end

#perform(resource, status_value) ⇒ Object (private)



20
21
22
23
24
# File 'lib/gitlab/triage/action/work_item_status.rb', line 20

def perform(resource, status_value)
  puts "# #{resource[:web_url]}"
  puts "Status would be set to: #{status_value}"
  puts "Work Item ID: gid://gitlab/WorkItem/#{resource[:id]}\n\n"
end