fix(fastlane): use version: kwarg for Spaceship Build.all
The submit_review lane was crashing with "unknown keyword: :filter" because Spaceship::ConnectAPI::Build.all doesn't accept a filter hash; it takes specific kwargs (app_id, version, build_number, etc.) and constructs the JSON:API filter internally. Also drop includes: "preReleaseVersion" — it's part of ESSENTIAL_INCLUDES by default. Add resubmit-ios-review.yml workflow so we can re-run only the fastlane submit_review lane (no rebuild) against an existing TestFlight build via workflow_dispatch.
This commit is contained in:
@@ -29,8 +29,7 @@ platform :ios do
|
||||
loop do
|
||||
builds = Spaceship::ConnectAPI::Build.all(
|
||||
app_id: app.id,
|
||||
filter: { "version" => build_number.to_s },
|
||||
includes: "preReleaseVersion",
|
||||
version: build_number.to_s,
|
||||
)
|
||||
build = builds.find { |b| b.pre_release_version&.platform == "IOS" }
|
||||
state = build&.processing_state
|
||||
|
||||
Reference in New Issue
Block a user