spaceship/lib/spaceship/test_flight/build.rb in fastlane-2.97.0 vs spaceship/lib/spaceship/test_flight/build.rb in fastlane-2.98.0
- old
+ new
@@ -117,9 +117,14 @@
# Just the builds, as a flat array, that are still processing
def self.all_processing_builds(app_id: nil, platform: nil, retry_count: 0)
all(app_id: app_id, platform: platform, retry_count: retry_count).find_all(&:processing?)
end
+ # Just the builds, as a flat array, that are waiting for beta review
+ def self.all_waiting_for_review(app_id: nil, platform: nil, retry_count: 0)
+ all(app_id: app_id, platform: platform, retry_count: retry_count).select { |app| app.external_state == 'testflight.build.state.review.waiting' }
+ end
+
def self.latest(app_id: nil, platform: nil)
all(app_id: app_id, platform: platform).sort_by(&:upload_date).last
end
# reload the raw_data resource for this build.