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

Inherits:
Gitlab::Triage::Action::WorkItemStatus show all
Defined in:
lib/gitlab/triage/action/work_item_status.rb

Constant Summary

Constants inherited from Gitlab::Triage::Action::WorkItemStatus

MINIMUM_VERSION

Instance Attribute Summary

Attributes inherited from Base

#network, #policy

Instance Method Summary collapse

Methods inherited from Gitlab::Triage::Action::WorkItemStatus

#instance_version, #supported_version?

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Triage::Action::Base

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