Skip to content
This repository was archived by the owner on Nov 30, 2026. It is now read-only.

Expose an application's source control provider - #311

Closed
joetannenbaum wants to merge 2 commits into
mainfrom
api-sync/applications
Closed

joetannenbaum wants to merge 2 commits into
mainfrom
api-sync/applications

Conversation

@joetannenbaum

@joetannenbaum joetannenbaum commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Exposes the application's source control provider, which the live Cloud API spec now returns, and offers the two starter kits the spec added to new.

Findings

Field What the spec says What the CLI did
ApplicationResource.attributes.source_control_provider_type New, required, string | null: github, gitlab, gitlab_self_hosted or bitbucket; null without a connected repository. Returned wherever an application is (application:list, application:get, create, update). Dropped it: App\Dto\Application had no property for it, so --json and --fields couldn't surface it.
StarterKit enum (CreateApplicationRequest.starter_kit) Now laravel, laravel-react, laravel-vue, laravel-livewire, laravel-svelte, laravel-rust, laravel-go, nextjs, nuxt, express, go, django, fastapi, rails, astro. The two new values match the laravel-rust and laravel-go entries in the Framework enum. App\Enums\StarterKit stopped at laravel-svelte, so new didn't offer the two kits and new --starter-kit=laravel-rust failed with "Unknown starter kit".

What changed

  • App\Dto\Application::$sourceControlProviderType (?string), mapped from source_control_provider_type, next to the repository fields.
  • StarterKit::LARAVEL_RUST and StarterKit::LARAVEL_GO, in the spec's order, labeled Laravel (Rust) and Laravel (Go). The --starter-kit help lists them.
  • Feature tests: application:get --json --fields=sourceControlProviderType for a provider and for an application without a repository, and new --starter-kit=laravel-rust / laravel-go sending the kit.

For review

  • Labels. Neither the spec nor the docs name these kits, so Laravel (Rust) and Laravel (Go) are placeholders. Rename them if the dashboard uses something else.
  • Default database. StarterKit::isLaravel() matches on the laravel prefix, so both new kits get the default database like the PHP Laravel kits unless --database=none is passed. That looks right for a full-stack Laravel framework, but nothing in the spec confirms it, so it's worth a check.

Checks

  • vendor/bin/pest: 856 passing (PromptFallbackTest skipped locally; CI runs it).
  • vendor/bin/phpstan analyse: no errors.
  • vendor/bin/pint: passing.

Demo

This session's GitHub access strips image markdown, so the GIF below is a plain link. Add a ! before the [cloud new] line to make it play inline.

cloud new

cloud new: the starter kit select now lists Laravel (Rust) and Laravel (Go); picking Laravel (Rust) runs through to a ready application.


Generated by Claude Code

The application resource now carries `source_control_provider_type`
(`github`, `gitlab`, `gitlab_self_hosted`, `bitbucket`, or null). The
Application DTO exposes it as `sourceControlProviderType`, so `--json`
and `--fields` can surface it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T1Sq4Yc6BQ4S3vcDD6eqZ6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T1Sq4XHhc6agf3Z2SuRBdi
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants