spaceship/lib/spaceship/connect_api/testflight/testflight.rb in fastlane-2.191.0 vs spaceship/lib/spaceship/connect_api/testflight/testflight.rb in fastlane-2.192.0

- old
+ new

@@ -202,28 +202,30 @@ } test_flight_request_client.delete("builds/#{build_id}/relationships/betaGroups", nil, body) end - def create_beta_group(app_id: nil, group_name: nil, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false) + def create_beta_group(app_id: nil, group_name: nil, is_internal_group: false, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false) body = { data: { attributes: { name: group_name, + isInternalGroup: is_internal_group, + hasAccessToAllBuilds: is_internal_group ? true : false, # Undocumented of 2021-08-02 in ASC API docs and ASC Open API spec. This is the default behavior on App Store Connect and does work with both Apple ID and API Token publicLinkEnabled: public_link_enabled, publicLinkLimit: public_link_limit, publicLinkLimitEnabled: public_link_limit_enabled }, relationships: { app: { data: { id: app_id, type: "apps" - } - } + }, + }, }, - type: "betaGroups" - } + type: "betaGroups", + }, } test_flight_request_client.post("betaGroups", body) end def patch_group(group_id: nil, attributes: {})