class Fastlane::Actions::SentryFinalizeReleaseAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb, line 38 def self.available_options Helper::SentryConfig.common_api_config_items + [ FastlaneCore::ConfigItem.new(key: :version, description: "Release version to finalize on Sentry"), FastlaneCore::ConfigItem.new(key: :app_identifier, short_option: "-a", env_name: "SENTRY_APP_IDENTIFIER", description: "App Bundle Identifier, prepended to version", optional: true), FastlaneCore::ConfigItem.new(key: :build, short_option: "-b", description: "Release build to finalize on Sentry", optional: true) ] end
description()
click to toggle source
@!group Documentation
# File lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb, line 27 def self.description "Finalize a release for a project on Sentry" end
details()
click to toggle source
# File lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb, line 31 def self.details [ "This action allows you to finalize releases created for a project on Sentry.", "See https://docs.sentry.io/learn/cli/releases/#finalizing-releases for more information." ].join(" ") end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb, line 62 def self.is_supported?(platform) true end
return_value()
click to toggle source
# File lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb, line 54 def self.return_value nil end
run(params)
click to toggle source
# File lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb, line 4 def self.run(params) require 'shellwords' Helper::SentryConfig.parse_api_params(params) version = params[:version] version = "#{params[:app_identifier]}@#{params[:version]}" if params[:app_identifier] version = "#{version}+#{params[:build]}" if params[:build] command = [ "releases", "finalize", version ] Helper::SentryHelper.call_sentry_cli(params, command) UI.success("Successfully finalized release: #{version}") end