Skip to content

Commit

Permalink
fix: make outputs more user-friendly for sites:create-template (#6915)
Browse files Browse the repository at this point in the history
* fix: hide github access token input in sites:create-template

Co-authored-by: Dylan Spyer <dylanspyer@gmail.com>

* fix: update error message to be more user-friendly

Co-authored-by: Dylan Spyer <dylanspyer@gmail.com>

---------

Co-authored-by: Dylan Spyer <dylanspyer@gmail.com>
  • Loading branch information
benhancock and dylanspyer authored Nov 5, 2024
1 parent 7c3d867 commit d132ddd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/sites/sites-create-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/utils/gh-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit d132ddd

Please # to comment.