From d132dddd50328165d47fd7c19e90502d34fc866c Mon Sep 17 00:00:00 2001 From: Ben Hancock Date: Tue, 5 Nov 2024 12:44:22 -0500 Subject: [PATCH] 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 * fix: update error message to be more user-friendly Co-authored-by: Dylan Spyer --------- Co-authored-by: Dylan Spyer --- src/commands/sites/sites-create-template.ts | 2 +- src/utils/gh-auth.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/sites/sites-create-template.ts b/src/commands/sites/sites-create-template.ts index c4eb5e80b0e..aad249cb708 100644 --- a/src/commands/sites/sites-create-template.ts +++ b/src/commands/sites/sites-create-template.ts @@ -118,7 +118,7 @@ export const sitesCreateTemplate = async (repository: string, options: OptionVal error( `Could not create repository: ${ (error_ as GitHubAPIError).message - }. Ensure that your PAT grants permission to create repositories`, + }. Ensure that your GitHub personal access token grants permission to create repositories`, ) } else { error( diff --git a/src/utils/gh-auth.ts b/src/utils/gh-auth.ts index 2e6bce40f5b..1739b91e6b9 100644 --- a/src/utils/gh-auth.ts +++ b/src/utils/gh-auth.ts @@ -90,7 +90,7 @@ export const authWithNetlify = async () => { const getPersonalAccessToken = async () => { const { token } = await inquirer.prompt([ { - type: 'input', + type: 'password', name: 'token', message: 'Your GitHub personal access token:', filter: (input) => input.trim(),