Skip to content

Commit dd5feda

Browse files
author
Mark Phelps
committed
Update wording after consulting product
1 parent 71f3237 commit dd5feda

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pkg/cmd/codespace/create.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@ func (a *App) handleAdditionalPermissions(ctx context.Context, createParams *api
155155
displayURL = utils.DisplayURL(allowPermissionsURL)
156156
)
157157

158-
fmt.Fprintf(a.io.ErrOut, "You must accept or deny additional permissions requested by the repository before you can create a codespace.\n")
158+
fmt.Fprintf(a.io.ErrOut, "You must authorize or deny additional permissions requested by this codespace before continuing.\n")
159159

160160
if !isInteractive {
161-
fmt.Fprintf(a.io.ErrOut, "%s to continue in your web browser to accept: %s\n", cs.Bold("Open this URL"), displayURL)
162-
fmt.Fprintf(a.io.ErrOut, "Alternatively, you can run %q with the %q option to create the codespace without these additional permissions.\n", a.io.ColorScheme().Bold("create"), cs.Bold("--default-permissions"))
161+
fmt.Fprintf(a.io.ErrOut, "%s in your browser to review and authorize additional permissions: %s\n", cs.Bold("Open this URL"), displayURL)
162+
fmt.Fprintf(a.io.ErrOut, "Alternatively, you can run %q with the %q option to continue without authorizing additional permissions.\n", a.io.ColorScheme().Bold("create"), cs.Bold("--default-permissions"))
163163
return nil, cmdutil.SilentError
164164
}
165165

166166
choices := []string{
167-
"Continue in browser to accept the additional permissions",
168-
"Create the codespace without these additional permissions",
167+
"Continue in browser to review and authorize additional permissions",
168+
"Continue without authorizing additional permissions",
169169
}
170170

171171
permsSurvey := []*survey.Question{

pkg/cmd/codespace/create_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ func TestApp_Create(t *testing.T) {
116116
idleTimeout: 30 * time.Minute,
117117
},
118118
wantErr: cmdutil.SilentError,
119-
wantStderr: `You must accept or deny additional permissions requested by the repository before you can create a codespace.
120-
Open this URL to continue in your web browser to accept: example.com/permissions
121-
Alternatively, you can run "create" with the "--default-permissions" option to create the codespace without these additional permissions.
119+
wantStderr: `You must authorize or deny additional permissions requested by this codespace before continuing.
120+
Open this URL in your browser to review and authorize additional permissions: example.com/permissions
121+
Alternatively, you can run "create" with the "--default-permissions" option to continue without authorizing additional permissions.
122122
`,
123123
},
124124
}

0 commit comments

Comments
 (0)