Skip to content

feat: add apps:builds:share command and --share flag on apps:builds:create#178

Merged
robingenz merged 4 commits into
mainfrom
feat/app-build-shares
Jul 12, 2026
Merged

feat: add apps:builds:share command and --share flag on apps:builds:create#178
robingenz merged 4 commits into
mainfrom
feat/app-build-shares

Conversation

@robingenz

Copy link
Copy Markdown
Member

What

  • New apps:builds:share command: creates (or returns the existing) public share link for a succeeded build, with --description and --expires-in-days options; --json prints { id, url, qrCodeUrl, expiresAt } for CI usage.
  • New --share, --share-description, and --share-expires-in-days flags on apps:builds:create: creates the share after the build succeeds and merges a share object into the JSON output. Rejected when combined with --detached.
  • Shared getAppBuildShareUrls helper resolving console/API base URLs from config.

Copilot AI review requested due to automatic review settings July 8, 2026 07:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds support for creating public share links for succeeded app builds, both as a standalone command and as an optional post-step during build creation, with consistent URL construction via a shared helper.

Changes:

  • Introduces apps:builds:share to create (or return) a build share and output either human-readable info or a CI-friendly JSON payload.
  • Extends apps:builds:create with --share and related flags to automatically create a share after a successful build and include it in JSON output.
  • Adds service/type plumbing plus a shared URL helper and accompanying Vitest coverage.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/utils/app-build-shares.ts Adds helper to compute share page and QR code URLs from configured base URLs.
src/types/app-build.ts Adds DTO types for build shares and share creation.
src/services/app-builds.ts Adds createShare API method for build shares.
src/index.ts Registers the new apps:builds:share command.
src/commands/apps/builds/share.ts Implements the new share command including JSON output mode.
src/commands/apps/builds/share.test.ts Adds tests for share command JSON shape, expiry computation, and error cases.
src/commands/apps/builds/create.ts Adds share-related flags and post-success share creation with JSON merge.
src/commands/apps/builds/create.test.ts Adds tests for share-in-JSON output and --share/--detached rejection.

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

Comment thread src/commands/apps/builds/share.ts
Comment thread src/commands/apps/builds/create.ts
Comment thread src/commands/apps/builds/create.ts
@robingenz robingenz self-assigned this Jul 10, 2026
@robingenz robingenz added the feature Feature label Jul 10, 2026
@robingenz robingenz merged commit 05588c3 into main Jul 12, 2026
3 checks passed
@robingenz robingenz deleted the feat/app-build-shares branch July 12, 2026 11:35
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