Created
January 19, 2022 17:56
-
-
Save joshdholtz/bb5b8b5efe032cce7988ffa7d554564c to your computer and use it in GitHub Desktop.
Get all change logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lane :whats_news do | |
require 'fastlane' | |
require 'spaceship' | |
email = "<YOUR EMAIL>" | |
team_name = "<YOUR TEAM NAME>" | |
bundle_id = "<YOUR BUNDLE ID>" | |
locales = ["en-US"] | |
Spaceship::ConnectAPI::Client.login(email, team_name: team_name) | |
# Get app and app versions | |
app = Spaceship::ConnectAPI::App.find(bundle_id) | |
versions = app.get_app_store_versions.each do |version| | |
# Get app localizations and print locale and whats new | |
puts "== VERSION: #{version.version_string}" | |
version.get_app_store_version_localizations().each do |localization| | |
next unless locales.include?(localization.locale) | |
puts "** LOCALE: #{localization.locale}" | |
puts "\t#{localization.whats_new}" | |
end | |
puts "" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment