Class: Fastlane::Actions::SentryCreateReleaseAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::SentryCreateReleaseAction
- Defined in:
- lib/fastlane/plugin/uninow/sentry/actions/sentry_create_release.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
62 63 64 |
# File 'lib/fastlane/plugin/uninow/sentry/actions/sentry_create_release.rb', line 62 def self. ["wschurman"] end |
.available_options ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/fastlane/plugin/uninow/sentry/actions/sentry_create_release.rb', line 40 def self. Helper::SentryConfig.common_api_config_items + [ FastlaneCore::ConfigItem.new(key: :version, description: "Release version to create on Sentry"), FastlaneCore::ConfigItem.new(key: :finalize, description: "Whether to finalize the release. If not provided or false, the release can be finalized using the finalize_release action", default_value: false, is_string: false, optional: true), FastlaneCore::ConfigItem.new(key: :app_identifier, short_option: "-a", env_name: "SENTRY_APP_IDENTIFIER", description: "App Bundle Identifier, prepended to version", optional: true) ] end |
.description ⇒ Object
29 30 31 |
# File 'lib/fastlane/plugin/uninow/sentry/actions/sentry_create_release.rb', line 29 def self.description "Create new releases for a project on Sentry" end |
.details ⇒ Object
33 34 35 36 37 38 |
# File 'lib/fastlane/plugin/uninow/sentry/actions/sentry_create_release.rb', line 33 def self.details [ "This action allows you to create new releases for a project on Sentry.", "See https://docs.sentry.io/learn/cli/releases/#creating-releases for more information." ].join(" ") end |
.is_supported?(platform) ⇒ Boolean
66 67 68 |
# File 'lib/fastlane/plugin/uninow/sentry/actions/sentry_create_release.rb', line 66 def self.is_supported?(platform) true end |
.return_value ⇒ Object
58 59 60 |
# File 'lib/fastlane/plugin/uninow/sentry/actions/sentry_create_release.rb', line 58 def self.return_value nil end |
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fastlane/plugin/uninow/sentry/actions/sentry_create_release.rb', line 4 def self.run(params) require 'shellwords' Helper::SentryHelper.check_sentry_cli! Helper::SentryConfig.parse_api_params(params) version = params[:version] version = "#{params[:app_identifier]}-#{params[:version]}" if params[:app_identifier] command = [ "sentry-cli", "releases", "new", version ] command.push("--finalize") if params[:finalize].nil? Helper::SentryHelper.call_sentry_cli(command) UI.success("Successfully created release: #{version}") end |