diff --git a/pkg/cmd/codespace/create.go b/pkg/cmd/codespace/create.go index a5da972e3..a6bbe627f 100644 --- a/pkg/cmd/codespace/create.go +++ b/pkg/cmd/codespace/create.go @@ -150,7 +150,7 @@ func (a *App) Create(ctx context.Context, opts createOptions) error { return fmt.Errorf("error checking codespace ownership: %w", err) } else if billableOwner != nil && billableOwner.Type == "Organization" { cs := a.io.ColorScheme() - fmt.Fprintln(a.io.Out, cs.Blue(" ✓ Codespaces usage for this repository is paid for by "+billableOwner.Login)) + fmt.Fprintln(a.io.ErrOut, cs.Blue(" ✓ Codespaces usage for this repository is paid for by "+billableOwner.Login)) } if promptForRepoAndBranch { diff --git a/pkg/cmd/codespace/create_test.go b/pkg/cmd/codespace/create_test.go index b695d463d..cffe5fe43 100644 --- a/pkg/cmd/codespace/create_test.go +++ b/pkg/cmd/codespace/create_test.go @@ -406,7 +406,8 @@ Alternatively, you can run "create" with the "--default-permissions" option to c showStatus: false, idleTimeout: 30 * time.Minute, }, - wantStdout: " ✓ Codespaces usage for this repository is paid for by megacorp\nmegacorp-private-abcd1234\n", + wantStderr: " ✓ Codespaces usage for this repository is paid for by megacorp\n", + wantStdout: "megacorp-private-abcd1234\n", }, { name: "doesn't mention billable owner when it's the individual",