Merge pull request #5276 from markphelps/codespaces-accept-perms-wording

This commit is contained in:
Mark Phelps 2022-03-15 12:55:44 -04:00 committed by GitHub
commit 43e4e9514d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,7 @@ func (a *App) handleAdditionalPermissions(ctx context.Context, createParams *api
}
choices := []string{
"Continue in browser to review and authorize additional permissions",
"Continue in browser to review and authorize additional permissions (Recommended)",
"Continue without authorizing additional permissions",
}
@ -199,6 +199,7 @@ func (a *App) handleAdditionalPermissions(ctx context.Context, createParams *api
// if the user chose to continue in the browser, open the URL
if answers.Accept == choices[0] {
fmt.Fprintln(a.io.ErrOut, "Please re-run the create request after accepting permissions in the browser.")
if err := a.browser.Browse(allowPermissionsURL); err != nil {
return nil, fmt.Errorf("error opening browser: %w", err)
}