[PR #212] [MERGED] App Store version promotions CLI #355

Closed
opened 2026-02-26 21:34:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/212
Author: @rudrankriyam
Created: 1/27/2026
Status: Merged
Merged: 1/27/2026
Merged by: @rudrankriyam

Base: mainHead: cursor/app-store-version-promotions-cli-60e6


📝 Commits (4)

📊 Changes

9 files changed (+329 additions, -2 deletions)

View changed files

📝 README.md (+3 -0)
📝 cmd/commands_test.go (+44 -0)
📝 cmd/versions.go (+3 -2)
cmd/versions_promotions.go (+91 -0)
📝 internal/asc/client_types.go (+2 -0)
📝 internal/asc/output_core.go (+4 -0)
internal/asc/output_promotions.go (+32 -0)
internal/asc/promotions.go (+86 -0)
internal/asc/promotions_test.go (+64 -0)

📄 Description

Implement asc versions promotions create command to support creating App Store version promotions; fixes #200.

The App Store Connect API currently only supports the creation of App Store Version Promotions, so the CLI command is designed as create-only.

Test Results:

  • go test ./... passed.
  • Manual live API tests for POST /v1/appStoreVersionPromotions were attempted but blocked by missing ASC_* environment authentication values.
  • New unit tests cover the client-side CreateAppStoreVersionPromotion and CLI argument validation.

Open in Cursor Open in Web


🔄 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/212 **Author:** [@rudrankriyam](https://github.com/rudrankriyam) **Created:** 1/27/2026 **Status:** ✅ Merged **Merged:** 1/27/2026 **Merged by:** [@rudrankriyam](https://github.com/rudrankriyam) **Base:** `main` ← **Head:** `cursor/app-store-version-promotions-cli-60e6` --- ### 📝 Commits (4) - [`28f652b`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/28f652bfb1dc599c2c996cf56a6f27bf310fd7cc) Add App Store version promotions create - [`af2ca67`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/af2ca678af9244aaf60b1afd7b0957c0501e5c62) Merge branch 'main' of https://github.com/rudrankriyam/App-Store-Connect-CLI into cursor/app-store-version-promotions-cli-60e6 - [`22d6027`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/22d6027634d5369643c4bc66ddcf04691a21d5f4) Require treatment for promotions create - [`5894b4a`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/5894b4a5903fe7b0a113a9f087b99c0cc83fa40a) test: avoid brittle promotion error check ### 📊 Changes **9 files changed** (+329 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -0) 📝 `cmd/commands_test.go` (+44 -0) 📝 `cmd/versions.go` (+3 -2) ➕ `cmd/versions_promotions.go` (+91 -0) 📝 `internal/asc/client_types.go` (+2 -0) 📝 `internal/asc/output_core.go` (+4 -0) ➕ `internal/asc/output_promotions.go` (+32 -0) ➕ `internal/asc/promotions.go` (+86 -0) ➕ `internal/asc/promotions_test.go` (+64 -0) </details> ### 📄 Description Implement `asc versions promotions create` command to support creating App Store version promotions; fixes #200. The App Store Connect API currently only supports the creation of App Store Version Promotions, so the CLI command is designed as create-only. **Test Results:** - `go test ./...` passed. - Manual live API tests for `POST /v1/appStoreVersionPromotions` were attempted but blocked by missing `ASC_*` environment authentication values. - New unit tests cover the client-side `CreateAppStoreVersionPromotion` and CLI argument validation. --- <a href="https://cursor.com/background-agent?bcId=bc-dbdae594-4cd1-466f-b832-56b88dd7112a"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-dbdae594-4cd1-466f-b832-56b88dd7112a"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 21:34:45 +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#355
No description provided.