Skip to content

feat(apps): add apps:transfer command#142

Merged
robingenz merged 2 commits intomainfrom
feat/apps-transfer
Apr 4, 2026
Merged

feat(apps): add apps:transfer command#142
robingenz merged 2 commits intomainfrom
feat/apps-transfer

Conversation

@robingenz
Copy link
Copy Markdown
Member

Summary

  • Add new apps:transfer CLI command to transfer an app to another organization
  • Add transfer method to apps service (POST /v1/apps/:appId/transfer)
  • Add TransferAppDto type
  • Support interactive prompts for app and target organization selection
  • Include confirmation prompt (skippable with --yes)
  • Add tests for the new command

Copilot AI review requested due to automatic review settings April 4, 2026 15:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new apps:transfer CLI command to move an app to a different organization, wiring it through the apps service and covering core interactive flows with tests.

Changes:

  • Introduces apps:transfer command with optional interactive selection + confirmation (skippable via --yes).
  • Adds transfer API method to AppsService (POST /v1/apps/:appId/transfer) and a TransferAppDto type.
  • Adds Vitest coverage for the command’s main paths (confirm/decline, interactive selection, API error).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/types/app.ts Adds TransferAppDto for the new transfer API call.
src/services/apps.ts Implements appsService.transfer() calling POST /v1/apps/:appId/transfer.
src/index.ts Registers the new apps:transfer command entrypoint.
src/commands/apps/transfer.ts Implements interactive/non-interactive behavior and confirmation gating.
src/commands/apps/transfer.test.ts Adds tests for confirmation flow, interactive selection, and API error handling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@robingenz robingenz self-assigned this Apr 4, 2026
@robingenz robingenz added the feature Feature label Apr 4, 2026
@robingenz robingenz merged commit b6f6b57 into main Apr 4, 2026
7 checks passed
@robingenz robingenz deleted the feat/apps-transfer branch April 4, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants