From c48e6ee4c92a492871790428329e41597b8c4836 Mon Sep 17 00:00:00 2001 From: Jake Shorty Date: Mon, 20 Jun 2022 21:36:01 +0000 Subject: [PATCH 1/2] Indent org billable owner notice for new codespaces --- pkg/cmd/codespace/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/codespace/create.go b/pkg/cmd/codespace/create.go index 764fe4314..d907406ba 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.Out, cs.Blue(" ✓ Codespaces usage for this repository is paid for by "+billableOwner.Login)) } if promptForRepoAndBranch { From bb753731e6ff15ed11dc5e88807230ce1fe2c0f7 Mon Sep 17 00:00:00 2001 From: Jake Shorty Date: Tue, 21 Jun 2022 15:19:24 +0000 Subject: [PATCH 2/2] Update test for indentation --- pkg/cmd/codespace/create_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/codespace/create_test.go b/pkg/cmd/codespace/create_test.go index 7a14a6056..641f0d332 100644 --- a/pkg/cmd/codespace/create_test.go +++ b/pkg/cmd/codespace/create_test.go @@ -406,7 +406,7 @@ 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", + wantStdout: " ✓ Codespaces usage for this repository is paid for by megacorp\nmegacorp-private-abcd1234\n", }, { name: "doesn't mention billable owner when it's the individual",