This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Repository navigation
Expose an application's source control provider - #311
Closed
joetannenbaum wants to merge 2 commits into
Closed
joetannenbaum wants to merge 2 commits into
joetannenbaum wants to merge 2 commits into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ApplicationResource.attributes.source_control_provider_typestring | null:github,gitlab,gitlab_self_hostedorbitbucket;nullwithout a connected repository. Returned wherever an application is (application:list,application:get, create, update).App\Dto\Applicationhad no property for it, so--jsonand--fieldscouldn't surface it.StarterKitenum (CreateApplicationRequest.starter_kit)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 thelaravel-rustandlaravel-goentries in theFrameworkenum.App\Enums\StarterKitstopped atlaravel-svelte, sonewdidn't offer the two kits andnew --starter-kit=laravel-rustfailed with "Unknown starter kit".What changed
App\Dto\Application::$sourceControlProviderType(?string), mapped fromsource_control_provider_type, next to the repository fields.StarterKit::LARAVEL_RUSTandStarterKit::LARAVEL_GO, in the spec's order, labeledLaravel (Rust)andLaravel (Go). The--starter-kithelp lists them.application:get --json --fields=sourceControlProviderTypefor a provider and for an application without a repository, andnew --starter-kit=laravel-rust/laravel-gosending the kit.For review
Laravel (Rust)andLaravel (Go)are placeholders. Rename them if the dashboard uses something else.StarterKit::isLaravel()matches on thelaravelprefix, so both new kits get the default database like the PHP Laravel kits unless--database=noneis 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 (PromptFallbackTestskipped 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 listsLaravel (Rust)andLaravel (Go); pickingLaravel (Rust)runs through to a ready application.Generated by Claude Code