Skip to content

Instantly share code, notes, and snippets.

@joshdholtz
Created January 19, 2022 17:56
Show Gist options
  • Save joshdholtz/bb5b8b5efe032cce7988ffa7d554564c to your computer and use it in GitHub Desktop.
Save joshdholtz/bb5b8b5efe032cce7988ffa7d554564c to your computer and use it in GitHub Desktop.
Get all change logs
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