mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 07:35:48 +03:00
[PR #436] [MERGED] migrate: follow-up hardening for appInfo selection #524
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#524
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?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/436
Author: @rudrankriyam
Created: 2/7/2026
Status: ✅ Merged
Merged: 2/7/2026
Merged by: @rudrankriyam
Base:
main← Head:followup/migrate-appinfo-selector-hardening📝 Commits (1)
fe56d70migrate: harden app info selection logic📊 Changes
2 files changed (+62 additions, -30 deletions)
View changed files
📝
internal/cli/migrate/migrate.go(+29 -30)📝
internal/cli/migrate/migrate_test.go(+33 -0)📄 Description
Summary
Follow-up PR after #434 and #435 to harden
migrateappInfo selection and remove drift between import/export paths.The 5 follow-up changes
migrate exportnow usesselectBestAppInfoID(same asmigrate import) instead of a separate helper.pickEditableAppInfoIDto avoid divergent logic over time.selectBestAppInfoIDnow safely handlesniland empty responses.stateandappStoreStateand treats live states (READY_FOR_DISTRIBUTION,READY_FOR_SALE) as non-editable.appStoreStateis missing.Validation
go test ./internal/cli/migrate -run "TestSelectBestAppInfoID" -count=1make testmake buildNotes
make formatwas attempted butgofumptis not installed in this environment; files were formatted withgofmt.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.