Merge pull request #5828 from cli/jshorty/indent-billable-owner-notice

Indent org billable owner notice for new codespaces
This commit is contained in:
Jake Shorty 2022-06-21 09:32:27 -06:00 committed by GitHub
commit 5893c9864d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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",