INNER CODE UNIT · Ruby

validated_release_notes_option

wordpress-mobile/WordPress-Android · fastlane/lanes/promote.rb:521

  def validated_release_notes_option(option)
    option = option.to_s.strip
    valid = STATIC_RELEASE_NOTE_OPTIONS.map { |o| o[:key] }
    UI.user_error!("`release_notes_option` is required, one of: #{valid.join(', ')}") if option.empty?
    return option if valid.include?(option)

    UI.user_error!("Unknown `release_notes_option` #{option.inspect}; expected one of: #{valid.join(', ')}")
  end

  # Promotes a version code to production for each app, returning a per-app `{ ok:, error: }` result.
  # A failure for one app doesn't stop the other.
  def distribute_to_production(version_code:)
    %i[wordpress jetpack].to_h do |app|
      result =
        begin
          promote_version_code_to_production(
            package_name: APP_SPECIFIC_VALUES[app][:package_name],
            version_code: version_code

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…