Skip to content

Expose an application's source control provider - #311

Open
joetannenbaum wants to merge 1 commit into
mainfrom
api-sync/applications
Open

joetannenbaum wants to merge 1 commit into
mainfrom
api-sync/applications

Conversation

@joetannenbaum

Copy link
Copy Markdown
Collaborator

Exposes the application's source control provider, which the live Cloud API spec now returns.

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.

What changed

  • App\Dto\Application::$sourceControlProviderType (?string), mapped from source_control_provider_type, next to the repository fields.
  • A feature test in tests/Feature/ApplicationCommandsTest.php reads it through application: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 StoreApplicationAvatarRequest schema; it is the same single required avatar file, so nothing changes here.

No interactive prompt changed, so there's no demo.

Checks

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants