Skip to content

Commit d132ddd

Browse files
fix: make outputs more user-friendly for sites:create-template (#6915)
* fix: hide github access token input in sites:create-template Co-authored-by: Dylan Spyer <[email protected]> * fix: update error message to be more user-friendly Co-authored-by: Dylan Spyer <[email protected]> --------- Co-authored-by: Dylan Spyer <[email protected]>
1 parent 7c3d867 commit d132ddd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/sites/sites-create-template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const sitesCreateTemplate = async (repository: string, options: OptionVal
118118
error(
119119
`Could not create repository: ${
120120
(error_ as GitHubAPIError).message
121-
}. Ensure that your PAT grants permission to create repositories`,
121+
}. Ensure that your GitHub personal access token grants permission to create repositories`,
122122
)
123123
} else {
124124
error(

src/utils/gh-auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const authWithNetlify = async () => {
9090
const getPersonalAccessToken = async () => {
9191
const { token } = await inquirer.prompt([
9292
{
93-
type: 'input',
93+
type: 'password',
9494
name: 'token',
9595
message: 'Your GitHub personal access token:',
9696
filter: (input) => input.trim(),

0 commit comments

Comments
 (0)