Repository navigation
Expose an application's source control provider - #311
Open
joetannenbaum wants to merge 1 commit into
Open
joetannenbaum wants to merge 1 commit into
joetannenbaum wants to merge 1 commit 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
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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.What changed
App\Dto\Application::$sourceControlProviderType(?string), mapped fromsource_control_provider_type, next to the repository fields.tests/Feature/ApplicationCommandsTest.phpreads it throughapplication:get --json --fields=sourceControlProviderType, for a provider and for an application without a repository.The spec also moved the avatar upload body into a named
StoreApplicationAvatarRequestschema; it is the same single requiredavatarfile, so nothing changes here.No interactive prompt changed, so there's no demo.
Checks
vendor/bin/pest: 868 passing (PromptFallbackTestskipped locally; CI runs it).vendor/bin/phpstan analyse: no errors.vendor/bin/pint --dirty: passing.Generated by Claude Code