[PR #755] [MERGED] feat: wire --family-sharable flag for IAP and subscription create/update #767

Closed
opened 2026-02-26 22:32:28 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/755
Author: @arnemoor
Created: 2/24/2026
Status: Merged
Merged: 2/24/2026
Merged by: @rudrankriyam

Base: mainHead: feat/family-sharable-flag


📝 Commits (2)

  • 93aaa9a feat: wire --family-sharable flag for IAP and subscription create/update
  • 095bc68 ci: avoid bench comment failures on fork PRs

📊 Changes

5 files changed (+303 additions, -9 deletions)

View changed files

📝 .github/workflows/bench-compare.yml (+10 -1)
internal/cli/cmdtest/iap_family_sharable_test.go (+131 -0)
internal/cli/cmdtest/subscriptions_family_sharable_test.go (+131 -0)
📝 internal/cli/iap/iap.go (+16 -5)
📝 internal/cli/subscriptions/subscriptions.go (+15 -3)

📄 Description

Summary

  • Expose familySharable API field as --family-sharable CLI flag on iap create, iap update, subscriptions create, and subscriptions update
  • Update commands accept --family-sharable as a sole update flag (no "at least one update flag" error)
  • Apple states family sharing cannot be disabled once enabled, so the flag is one-way (present = enable, absent = no change)

Test plan

  • TestIAPCreateFamilySharable — verifies request body contains "familySharable":true
  • TestIAPUpdateFamilySharableAsSoleFlag — verifies --family-sharable alone is sufficient, no other attrs set
  • TestSubscriptionsCreateFamilySharable — same for subscriptions create
  • TestSubscriptionsUpdateFamilySharableAsSoleFlag — same for subscriptions update
  • ASC_BYPASS_KEYCHAIN=1 make test — full suite green
  • make format — clean
  • Help output verified: asc iap create --help | grep family etc.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/755 **Author:** [@arnemoor](https://github.com/arnemoor) **Created:** 2/24/2026 **Status:** ✅ Merged **Merged:** 2/24/2026 **Merged by:** [@rudrankriyam](https://github.com/rudrankriyam) **Base:** `main` ← **Head:** `feat/family-sharable-flag` --- ### 📝 Commits (2) - [`93aaa9a`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/93aaa9af1c23fbe9a74d4f13773e3be12fc5f478) feat: wire --family-sharable flag for IAP and subscription create/update - [`095bc68`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/095bc6880081da9aa1e00636ccdaa51f81fd199c) ci: avoid bench comment failures on fork PRs ### 📊 Changes **5 files changed** (+303 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/bench-compare.yml` (+10 -1) ➕ `internal/cli/cmdtest/iap_family_sharable_test.go` (+131 -0) ➕ `internal/cli/cmdtest/subscriptions_family_sharable_test.go` (+131 -0) 📝 `internal/cli/iap/iap.go` (+16 -5) 📝 `internal/cli/subscriptions/subscriptions.go` (+15 -3) </details> ### 📄 Description ## Summary - Expose `familySharable` API field as `--family-sharable` CLI flag on `iap create`, `iap update`, `subscriptions create`, and `subscriptions update` - Update commands accept `--family-sharable` as a sole update flag (no "at least one update flag" error) - Apple states family sharing cannot be disabled once enabled, so the flag is one-way (present = enable, absent = no change) ## Test plan - [x] `TestIAPCreateFamilySharable` — verifies request body contains `"familySharable":true` - [x] `TestIAPUpdateFamilySharableAsSoleFlag` — verifies `--family-sharable` alone is sufficient, no other attrs set - [x] `TestSubscriptionsCreateFamilySharable` — same for subscriptions create - [x] `TestSubscriptionsUpdateFamilySharableAsSoleFlag` — same for subscriptions update - [x] `ASC_BYPASS_KEYCHAIN=1 make test` — full suite green - [x] `make format` — clean - [x] Help output verified: `asc iap create --help | grep family` etc. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 22:32:28 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/App-Store-Connect-CLI#767
No description provided.