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
|
# File 'lib/fastlane/plugin/apadmi_grout/actions/generate_release_notes_action.rb', line 63
def self.available_options
Apadmi::Grout::CommonOptions.board_options + [
FastlaneCore::ConfigItem.new(key: :tickets_moved_by_build,
description: "Any tickets who's state was moved by this build",
default_value: [],
type: Array,
optional: true),
FastlaneCore::ConfigItem.new(key: :release_notes_title,
description: "The title of the release notes",
env_name: "RELEASE_NOTES_TITLE",
type: String,
verify_block: proc do |value|
UI.user_error!("Didn't pass a valid project title") unless value
end,
optional: false),
FastlaneCore::ConfigItem.new(key: :oldest_ref,
description: "Changelog between 2 git refs, this is the furthest back of those",
type: String,
verify_block: proc do |value|
UI.user_error!("Didn't pass a valid ref") unless value
end,
optional: false),
FastlaneCore::ConfigItem.new(key: :latest_ref,
description: "Changelog between 2 git refs, this is the most recent of those",
default_value: "HEAD",
type: String,
verify_block: proc do |value|
UI.user_error!("Didn't pass a valid ref") unless value
end),
FastlaneCore::ConfigItem.new(key: :commit_hash,
description: "Commit hash of commit being built",
env_name: "GIT_COMMIT_HASH", type: String,
optional: true),
FastlaneCore::ConfigItem.new(key: :date_string,
description: "Commit hash of commit being built",
default_value: Time.now.strftime("%d/%m/%Y"),
type: String,
optional: true),
FastlaneCore::ConfigItem.new(key: :ci_build_number,
description: "Build number provided by CI",
env_name: "BUILD_NUMBER",
type: String,
optional: true),
FastlaneCore::ConfigItem.new(key: :ci_build_url,
description: "Build URL of CI job",
env_name: "BUILD_URL",
type: String,
optional: true),
FastlaneCore::ConfigItem.new(key: :app_version,
description: "Current App Version",
type: String,
optional: false,
verify_block: proc do |value|
UI.user_error!("Didn't pass a valid app version") unless value
end),
FastlaneCore::ConfigItem.new(key: :min_sdk_int,
description: "Minimum OS version supported by the app",
type: String,
optional: true,
default_value: ""),
FastlaneCore::ConfigItem.new(key: :environment,
description: "Optional environment name to display in the release notes (e.g. 'Staging', 'Production')",
type: String,
optional: true),
FastlaneCore::ConfigItem.new(key: :templates,
description: "Release notes templates",
default_value: Apadmi::Grout::Templates.default,
type: Apadmi::Grout::Templates),
FastlaneCore::ConfigItem.new(key: :output_dir,
description: "Directory in which to save the release notes file",
default_value: ENV["DEPLOY_DIR"] || "#{Apadmi::Grout::GitUtils.git_root}/build",
type: String)
]
end
|