62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
# File 'lib/fastlane/plugin/jira_issues_release_notes/actions/jira_versions_action.rb', line 62
def self.available_options
= Proc.new do |other|
UI.user_error! "Unexpected conflict with option #{other}" unless [:extract_from_branch, :tag_prefix].include?(other)
end
= Proc.new do |other|
UI.user_error! "Unexpected conflict with option #{other}" unless [:comment_block, :comment].include?(other)
end
[
FastlaneCore::ConfigItem.new(
key: :project_id,
env_name: 'FL_JIRA_PROJECT_ID',
description: 'The project ID or project key',
optional: false,
),
FastlaneCore::ConfigItem.new(
key: :query,
description: 'Filter the results using a literal string. Versions with matching name or description are returned (case insensitive).',
optional: true,
),
FastlaneCore::ConfigItem.new(
key: :order_by,
description: 'Order the results by a field. Valid values: description, -description, +description, name, -name, +name, releaseDate, -releaseDate, +releaseDate, sequence, -sequence, +sequence, startDate, -startDate, +startDate',
optional: true,
verify_block: proc do |value|
valid_order = ["description", "-description", "+description", "name", "-name", "+name", "releaseDate", "-releaseDate", "+releaseDate", "sequence", "-sequence", "+sequence", "startDate", "-startDate", "+startDate"]
UI.user_error!("Invalid :order_by value! Valid values: #{valid_order.join(", ")}") unless valid_order.include?(value)
end
),
FastlaneCore::ConfigItem.new(
key: :status,
description: 'A list of status values used to filter the results by version status. This parameter accepts a comma-separated list. The status values are released, unreleased, and archived',
optional: true,
verify_block: proc do |value|
valid_values = ["released", "unreleased", "archived"]
UI.user_error!("Invalid :status value! Valid values: #{valid_values.join(", ")}") unless valid_values.include?(value)
end
),
FastlaneCore::ConfigItem.new(
key: :username,
env_name: 'FL_JIRA_USERNAME',
description: 'Jira user',
optional: false
),
FastlaneCore::ConfigItem.new(
key: :password,
env_name: 'FL_JIRA_PASSWORD',
description: 'Jira user',
optional: false
),
FastlaneCore::ConfigItem.new(
key: :host,
env_name: 'FL_JIRA_HOST',
description: 'Jira location',
optional: false
),
FastlaneCore::ConfigItem.new(
key: :api_version,
env_name: 'FL_JIRA_API_VERSION',
description: 'Jira api version',
default_value: '3',
optional: true,
),
FastlaneCore::ConfigItem.new(
key: :context_path,
env_name: 'FL_JIRA_CONTEXT_PATH',
description: 'Jira context path',
optional: true,
default_value: ''
),
FastlaneCore::ConfigItem.new(
key: :disable_ssl_verification,
env_name: 'FL_JIRA_DISABLE_SSL_VERIFICATION',
description: 'Jira SSL Verification mode',
optional: true,
default_value: false,
type: Boolean
),
FastlaneCore::ConfigItem.new(
key: :debug,
description: "True if you want to log out a debug info",
default_value: false,
type: Boolean,
optional: true
)
]
end
|