From b45c66020a011409610b9b9df159d5e52e10211d Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 11 May 2026 11:55:16 +0000 Subject: [PATCH 1/2] docs(branches): clarify main branch credential field behavior in get help Document that POSTGRES_URL and POSTGRES_URL_NON_POOLING are not populated for the main branch because production database credentials are not retrievable via API. Update both the Go CLI long description and the legacy TS command description to keep them in sync. https://claude.ai/code/session_01Qwq7TBwMiKidMFUQKkwkTr --- apps/cli-go/cmd/branches.go | 3 ++- apps/cli/src/legacy/commands/branches/get/get.command.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/cli-go/cmd/branches.go b/apps/cli-go/cmd/branches.go index fee85fccb7..420f6d02ae 100644 --- a/apps/cli-go/cmd/branches.go +++ b/apps/cli-go/cmd/branches.go @@ -78,7 +78,8 @@ var ( branchGetCmd = &cobra.Command{ Use: "get [name]", Short: "Retrieve details of a preview branch", - Long: "Retrieve details of the specified preview branch.", + Long: "Retrieve details of the specified preview branch.\n\n" + + "Note: For the main branch, password-dependent fields (POSTGRES_URL, POSTGRES_URL_NON_POOLING) are not populated because production database credentials are not retrievable via API.", Args: cobra.MaximumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx := cmd.Context() diff --git a/apps/cli/src/legacy/commands/branches/get/get.command.ts b/apps/cli/src/legacy/commands/branches/get/get.command.ts index 059f5ba66f..f2632740ff 100644 --- a/apps/cli/src/legacy/commands/branches/get/get.command.ts +++ b/apps/cli/src/legacy/commands/branches/get/get.command.ts @@ -16,7 +16,10 @@ const config = { export type LegacyBranchesGetFlags = CliCommand.Command.Config.Infer; export const legacyBranchesGetCommand = Command.make("get", config).pipe( - Command.withDescription("Retrieve details of the specified preview branch."), + Command.withDescription( + "Retrieve details of the specified preview branch.\n\n" + + "Note: For the main branch, password-dependent fields (POSTGRES_URL, POSTGRES_URL_NON_POOLING) are not populated because production database credentials are not retrievable via API.", + ), Command.withShortDescription("Retrieve details of a preview branch"), Command.withHandler((flags) => legacyBranchesGet(flags)), ); From 9992b9673c32fcbcea3cc08e0c79193c0f6ab8a7 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 11 May 2026 12:19:06 +0000 Subject: [PATCH 2/2] chore(branches): apply gofmt to branchGetCmd struct alignment https://claude.ai/code/session_01Qwq7TBwMiKidMFUQKkwkTr --- apps/cli-go/cmd/branches.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cli-go/cmd/branches.go b/apps/cli-go/cmd/branches.go index 420f6d02ae..62c69280c4 100644 --- a/apps/cli-go/cmd/branches.go +++ b/apps/cli-go/cmd/branches.go @@ -80,7 +80,7 @@ var ( Short: "Retrieve details of a preview branch", Long: "Retrieve details of the specified preview branch.\n\n" + "Note: For the main branch, password-dependent fields (POSTGRES_URL, POSTGRES_URL_NON_POOLING) are not populated because production database credentials are not retrievable via API.", - Args: cobra.MaximumNArgs(1), + Args: cobra.MaximumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx := cmd.Context() fsys := afero.NewOsFs()