mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #763] beta-build-localizations create: expose existing upsert logic as --upsert flag #205
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mithileshchellappan on GitHub (Feb 24, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/763
Summary
Expose the existing
UpsertBetaBuildLocalization()logic as a--upsertflag onbeta-build-localizations create, so agents don't need to handle create-vs-update branching themselves.Problem
asc beta-build-localizations createfails when a localization for the given locale already exists on a build:This forces agents into a two-step pattern:
Existing Internal Solution
The codebase already has a clean upsert function in `internal/cli/shared/test_notes.go`:
This is already used by:
It just isn't exposed to the standalone `beta-build-localizations create` command.
Proposal
Add a `--upsert` flag to `beta-build-localizations create`:
Implementation
In `internal/cli/betabuildlocalizations/beta_build_localizations.go`, the `create` handler (around line 219) should:
This is a minimal change since the upsert logic already exists and is tested through other code paths.
Acceptance Criteria