pilot/lib/pilot/build_manager.rb in fastlane-2.141.0 vs pilot/lib/pilot/build_manager.rb in fastlane-2.142.0
- old
+ new
@@ -479,15 +479,21 @@
Spaceship::ConnectAPI.post_beta_build_localizations(build_id: build.id, attributes: attributes)
end
end
def update_build_beta_details(build, info)
- build_beta_detail = build.build_beta_detail
-
attributes = {}
attributes[:autoNotifyEnabled] = info[:auto_notify_enabled] if info.key?(:auto_notify_enabled)
+ build_beta_detail = build.build_beta_detail
- Spaceship::ConnectAPI.patch_build_beta_details(build_beta_details_id: build_beta_detail.id, attributes: attributes)
+ # https://github.com/fastlane/fastlane/pull/16006
+ if build_beta_detail
+ Spaceship::ConnectAPI.patch_build_beta_details(build_beta_details_id: build_beta_detail.id, attributes: attributes)
+ else
+ if attributes[:autoNotifyEnabled]
+ UI.important("Unable to auto notify testers as the build did not include beta detail information - this is likely a temporary issue on TestFlight.")
+ end
+ end
end
end
# rubocop:enable Metrics/ClassLength
end