Skip to content

fix: rename share JSON output to appBuildShare with webUrl#183

Merged
robingenz merged 1 commit into
mainfrom
fix/app-build-share-json
Jul 12, 2026
Merged

fix: rename share JSON output to appBuildShare with webUrl#183
robingenz merged 1 commit into
mainfrom
fix/app-build-share-json

Conversation

@robingenz

Copy link
Copy Markdown
Member

What

Aligns the share-related --json output with the schema and URL naming conventions:

  • apps:builds:create --share: the share object is renamed to appBuildShare, matching the entity naming used across endpoints and schemas.
  • The share page URL field is renamed from url to webUrl in both apps:builds:create and apps:builds:share, following the common webUrl convention for links pointing to a page in a web UI. Field order: id, qrCodeUrl, webUrl, expiresAt.
  • Documents both conventions in CLAUDE.md.

Note: this changes the JSON output of the recently released sharing commands. It is intentionally published as a fix (no major bump) since the feature has no adoption yet.

Copilot AI review requested due to automatic review settings July 12, 2026 12:37

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

This PR aligns the share-related --json output for app build sharing with the repository’s schema and URL naming conventions, standardizing the resource key and the share page URL field name.

Changes:

  • Renames the share URL field from url to webUrl in share-related outputs.
  • Renames the nested JSON object in apps:builds:create --share output from share to appBuildShare.
  • Documents these conventions in CLAUDE.md and updates affected tests.

Reviewed changes

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

Show a summary per file
File Description
src/utils/app-build-shares.ts Renames returned share page URL field to webUrl and preserves QR code URL generation.
src/commands/apps/builds/share.ts Updates --json output and console messaging to use webUrl.
src/commands/apps/builds/share.test.ts Updates assertions to match the new webUrl JSON shape and ordering.
src/commands/apps/builds/create.ts Renames nested JSON output key to appBuildShare and uses webUrl consistently.
src/commands/apps/builds/create.test.ts Updates assertions to match appBuildShare and webUrl output.
CLAUDE.md Adds documented conventions for webUrl naming and nested entity key naming.

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

@robingenz robingenz self-assigned this Jul 12, 2026
@robingenz robingenz added the bug/fix Something isn't working label Jul 12, 2026
@robingenz robingenz merged commit 32d8bd8 into main Jul 12, 2026
4 checks passed
@robingenz robingenz deleted the fix/app-build-share-json branch July 12, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug/fix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants