Created
May 28, 2020 15:57
-
-
Save joshdholtz/8f6ab21d5ed0dcbf21e4f35a60bdece1 to your computer and use it in GitHub Desktop.
fastlane - Get TestFlight Feedback
This file contains hidden or 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 :connect_feedback do | |
fastlane_require 'spaceship' | |
Spaceship::Tunes.login | |
Spaceship::Tunes.select_team | |
# Gets app | |
app = Spaceship::ConnectAPI::App.find(ENV["TEST_APP_BUNDLE"]) | |
# Gets feedback for an app (default includes screenshots and tester info) | |
feedbacks = app.get_beta_feedback | |
# Iterate over feedbacks | |
feedbacks.each do |feedback| | |
puts "" | |
puts "comment: #{feedback.comment}" | |
puts "name: #{feedback.tester.first_name} #{feedback.tester.last_name}" | |
puts "email: #{feedback.tester.email}" | |
puts "build: #{feedback.build.version}" | |
# Iterate over feedback screenshots | |
feedback.screenshots.each do |screenshot| | |
# screenshot.image_assets is an array of different resolults of a screenshots | |
image_asset = screenshot.image_assets.first | |
puts "\turl: #{image_asset["url"]}" | |
puts "\twidth: #{image_asset["width"]}" | |
puts "\theight: #{image_asset["height"]}" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment