[PR #489] [MERGED] Builds latest next number #563

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

📋 Pull Request Information

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

Base: mainHead: cursor/builds-latest-next-number-ab27


📝 Commits (3)

  • b4dd069 test: cover builds latest --next
  • 821df9b feat: add builds latest --next
  • 76391ae fix: support dotted build numbers for --next

📊 Changes

5 files changed (+817 additions, -25 deletions)

View changed files

📝 internal/asc/output_builds.go (+35 -0)
📝 internal/asc/output_registry_init.go (+1 -0)
📝 internal/cli/builds/builds_latest.go (+245 -24)
📝 internal/cli/builds/builds_latest_test.go (+73 -1)
📝 internal/cli/cmdtest/builds_latest_output_test.go (+463 -0)

📄 Description

Summary

Adds a --next flag to asc builds latest to provide a collision-safe next build number for CI systems. This number is derived by considering both processed builds and in-flight build uploads, preventing potential collisions. An --initial-build-number flag is also introduced for scenarios with no prior build history. The existing asc builds latest behavior remains unchanged by default.

Validation

  • make format
  • make lint
  • make test
  • go test ./internal/cli/builds -run 'Latest.*Next|BuildNumber'
  • go test ./internal/cli/cmdtest -run 'BuildsLatest'

Wall of Apps (only if this PR adds/updates a Wall app)

  • I edited docs/wall-of-apps.json (not the generated Wall block in README.md directly)
  • I ran make update-wall-of-apps
  • I committed all generated files:
    • docs/wall-of-apps.json
    • README.md

Entry template:

{
  "app": "Your App Name",
  "link": "https://apps.apple.com/app/id1234567890",
  "creator": "your-github-handle",
  "platform": ["iOS"]
}

Common Apple labels: iOS, macOS, watchOS, tvOS, visionOS.


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/489 **Author:** [@rudrankriyam](https://github.com/rudrankriyam) **Created:** 2/11/2026 **Status:** ✅ Merged **Merged:** 2/11/2026 **Merged by:** [@rudrankriyam](https://github.com/rudrankriyam) **Base:** `main` ← **Head:** `cursor/builds-latest-next-number-ab27` --- ### 📝 Commits (3) - [`b4dd069`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/b4dd0698976c8f613f6f5a77baa55ef9839323ca) test: cover builds latest --next - [`821df9b`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/821df9bdc72bc3a84c67229c23b922a07c4ae422) feat: add builds latest --next - [`76391ae`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/76391ae380e7b8efc49a69c6fccf33b06a1e92f9) fix: support dotted build numbers for --next ### 📊 Changes **5 files changed** (+817 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `internal/asc/output_builds.go` (+35 -0) 📝 `internal/asc/output_registry_init.go` (+1 -0) 📝 `internal/cli/builds/builds_latest.go` (+245 -24) 📝 `internal/cli/builds/builds_latest_test.go` (+73 -1) 📝 `internal/cli/cmdtest/builds_latest_output_test.go` (+463 -0) </details> ### 📄 Description ## Summary Adds a `--next` flag to `asc builds latest` to provide a collision-safe next build number for CI systems. This number is derived by considering both processed builds and in-flight build uploads, preventing potential collisions. An `--initial-build-number` flag is also introduced for scenarios with no prior build history. The existing `asc builds latest` behavior remains unchanged by default. ## Validation - [x] `make format` - [x] `make lint` - [x] `make test` - [x] `go test ./internal/cli/builds -run 'Latest.*Next|BuildNumber'` - [x] `go test ./internal/cli/cmdtest -run 'BuildsLatest'` ## Wall of Apps (only if this PR adds/updates a Wall app) - [ ] I edited `docs/wall-of-apps.json` (not the generated Wall block in `README.md` directly) - [ ] I ran `make update-wall-of-apps` - [ ] I committed all generated files: - `docs/wall-of-apps.json` - `README.md` Entry template: ```json { "app": "Your App Name", "link": "https://apps.apple.com/app/id1234567890", "creator": "your-github-handle", "platform": ["iOS"] } ``` Common Apple labels: `iOS`, `macOS`, `watchOS`, `tvOS`, `visionOS`. --- <p><a href="https://cursor.com/background-agent?bcId=bc-d82958f4-c6ba-4ddc-8a2a-68b1a46851b0"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-d82958f4-c6ba-4ddc-8a2a-68b1a46851b0"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a></p> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 22:31:32 +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#563
No description provided.