Class: Fastlane::Actions::FindTicketsToMoveAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/apadmi_grout/actions/find_tickets_to_move_action.rb

Overview

Move JIRA tickets and generate release notes

Class Method Summary collapse

Class Method Details

.authorsObject



30
31
32
# File 'lib/fastlane/plugin/apadmi_grout/actions/find_tickets_to_move_action.rb', line 30

def self.authors
  ["[email protected]"]
end

.available_optionsObject



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/fastlane/plugin/apadmi_grout/actions/find_tickets_to_move_action.rb', line 34

def self.available_options
  Apadmi::Grout::CommonOptions.board_options + [
    FastlaneCore::ConfigItem.new(key: :board_component_name,
                                 description: "The component by which to filter tickets",
                                 env_name: "BOARD_COMPONENT_NAME",
                                 type: String,
                                 verify_block: proc do |value|
                                   UI.user_error!("Didn't pass a valid component") unless value
                                 end,
                                 optional: false),
    FastlaneCore::ConfigItem.new(key: :board_status_from,
                                 description: "The status to filter by to find tickets",
                                 env_name: "BOARD_STATUS_FROM",
                                 type: String,
                                 verify_block: proc do |value|
                                   UI.user_error!("Didn't pass a valid status") unless value
                                 end,
                                 optional: false),
    FastlaneCore::ConfigItem.new(key: :custom_flag_messages,
                                 description: "Custom messages to use when flagging tickets",
                                 type: Apadmi::Grout::FlagMessages,
                                 default_value: nil,
                                 optional: true),
    FastlaneCore::ConfigItem.new(key: :options,
                                 description: "Additional options to customize search",
                                 type: Apadmi::Grout::FindTicketsOptions,
                                 default_value: nil,
                                 optional: true)
  ]
end

.descriptionObject



26
27
28
# File 'lib/fastlane/plugin/apadmi_grout/actions/find_tickets_to_move_action.rb', line 26

def self.description
  "Convenience lane that finds tickets that are ready to be moved by CI."
end

.is_supported?(_platform) ⇒ Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/fastlane/plugin/apadmi_grout/actions/find_tickets_to_move_action.rb', line 65

def self.is_supported?(_platform)
  true
end

.run(params) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fastlane/plugin/apadmi_grout/actions/find_tickets_to_move_action.rb', line 11

def self.run(params)
  logger = FastLane::FastlaneLogger.new
  logger.message("Finding tickets to move")

  build_tools = Apadmi::Grout::DIWrapper.di(params, logger)

  build_tools.find_tickets_to_move_action.run(
    params[:board_component_name],
    params[:board_status_from],
    [],
    params[:custom_flag_messages],
    params[:options]
  )
end