[GH-ISSUE #328] Parity: Xcode Cloud SCM endpoints #100

Closed
opened 2026-02-26 21:33:24 +03:00 by kerem · 1 comment
Owner

Originally created by @rudrankriyam on GitHub (Jan 30, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/328

Overview

Add missing SCM endpoints for Xcode Cloud: providers, repositories, git references, and pull requests. Currently the CLI uses SCM endpoints internally but doesn't expose them.

Scope (OpenAPI resources)

  • scmProviders list/get + repositories
  • scmRepositories list + pullRequests + relationships
  • scmGitReferences get
  • scmPullRequests get

Proposed CLI

Top-level group:

  • asc xcode-cloud scm ...

Subcommands:

  • xcode-cloud scm providers list|get
  • xcode-cloud scm providers repositories --provider-id ID
  • xcode-cloud scm repositories list|get
  • xcode-cloud scm repositories git-references --repo-id ID
  • xcode-cloud scm repositories pull-requests --repo-id ID
  • xcode-cloud scm git-references get --id ID
  • xcode-cloud scm pull-requests get --id ID

Examples:

  • asc xcode-cloud scm providers list
  • asc xcode-cloud scm repositories list
  • asc xcode-cloud scm repositories git-references --repo-id REPO_ID

Flag patterns

Common:

  • --provider-id, --repo-id, --id, --output, --pretty, --limit, --next, --paginate

Output

  • JSON minified by default
  • --pretty for JSON
  • --output table/markdown for list commands

Detailed TODO

  • Add client methods for scmProviders list/get and provider repositories
  • Add client methods for scmRepositories list + pull requests
  • Add client methods for scmGitReferences get and scmPullRequests get
  • Implement CLI xcode-cloud scm group and subcommands
  • Add cmdtests + HTTP client tests (mocked)

Acceptance criteria

  • SCM providers and repositories can be listed via CLI
  • Git references and pull requests retrievable by ID
  • Pagination/--next validation works
  • JSON-first output preserved

Tests

  • Flag validation tests
  • HTTP client tests for list/get
  • Output tests for list commands

Implementation notes

  • Add client methods in internal/asc/xcode_cloud.go
  • Add CLI commands in internal/cli/xcodecloud
  • Follow patterns from existing Xcode Cloud commands
Originally created by @rudrankriyam on GitHub (Jan 30, 2026). Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/328 # Overview Add missing SCM endpoints for Xcode Cloud: providers, repositories, git references, and pull requests. Currently the CLI uses SCM endpoints internally but doesn't expose them. # Scope (OpenAPI resources) - `scmProviders` list/get + repositories - `scmRepositories` list + pullRequests + relationships - `scmGitReferences` get - `scmPullRequests` get # Proposed CLI Top-level group: - `asc xcode-cloud scm ...` Subcommands: - `xcode-cloud scm providers list|get` - `xcode-cloud scm providers repositories --provider-id ID` - `xcode-cloud scm repositories list|get` - `xcode-cloud scm repositories git-references --repo-id ID` - `xcode-cloud scm repositories pull-requests --repo-id ID` - `xcode-cloud scm git-references get --id ID` - `xcode-cloud scm pull-requests get --id ID` Examples: - `asc xcode-cloud scm providers list` - `asc xcode-cloud scm repositories list` - `asc xcode-cloud scm repositories git-references --repo-id REPO_ID` # Flag patterns Common: - `--provider-id`, `--repo-id`, `--id`, `--output`, `--pretty`, `--limit`, `--next`, `--paginate` # Output - JSON minified by default - `--pretty` for JSON - `--output table/markdown` for list commands # Detailed TODO - [ ] Add client methods for scmProviders list/get and provider repositories - [ ] Add client methods for scmRepositories list + pull requests - [ ] Add client methods for scmGitReferences get and scmPullRequests get - [ ] Implement CLI `xcode-cloud scm` group and subcommands - [ ] Add cmdtests + HTTP client tests (mocked) # Acceptance criteria - [ ] SCM providers and repositories can be listed via CLI - [ ] Git references and pull requests retrievable by ID - [ ] Pagination/`--next` validation works - [ ] JSON-first output preserved # Tests - Flag validation tests - HTTP client tests for list/get - Output tests for list commands # Implementation notes - Add client methods in `internal/asc/xcode_cloud.go` - Add CLI commands in `internal/cli/xcodecloud` - Follow patterns from existing Xcode Cloud commands
kerem closed this issue 2026-02-26 21:33:24 +03:00
Author
Owner

@rudrankriyam commented on GitHub (Jan 30, 2026):

Closed by #345 (merged).

<!-- gh-comment-id:3825982346 --> @rudrankriyam commented on GitHub (Jan 30, 2026): Closed by #345 (merged).
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#100
No description provided.