Skip to content

Commit

Permalink
fix: add question to user to check for network connectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
bdenham committed Apr 18, 2023
1 parent 6f3727d commit 6a104b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const start = async () => {
try {
// Ask relevant questions
const answers = await askQuestions();
const { jiraProject, githubRepo, releaseVersion, ticketStatus, startDate, endDate, jiraToken, githubToken } = answers;
const { jiraProject, githubRepo, ticketStatus, startDate, endDate, jiraToken, githubToken } = answers;
console.log("");
spinner.start();

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "jitnotes",
"version": "0.0.3",
"version": "1.0.0",
"description": "CLI for generating release notes for Commerce Jira projects and GitHub repos.",
"repository": "https://github.com/commerce-docs/jitnotes.git",
"repository": "https://github.com/adobedocs/jitnotes.git",
"author": "Adobe, Inc., Commerce Docs team, Bruce Denham",
"license": "osl3.0",
"main": "index.js",
Expand Down Expand Up @@ -36,4 +36,4 @@
"node": ">=18.0.0"
},
"packageManager": "[email protected]"
}
}
10 changes: 8 additions & 2 deletions src/questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,18 @@ export default function askQuestions() {
{
name: 'jiraToken',
type: 'input',
message: chalk.green(`Enter your ${chalk.yellow('Jira API token')} (Leave blank if using an .env file):`),
message: chalk.green(`Enter your ${chalk.yellow('Jira API token')} (Optional if using an .env file):`),
},
{
name: 'githubToken',
type: 'input',
message: chalk.green(`Enter your ${chalk.yellow('GitHub Access token')} (Leave blank if using an .env file):`),
message: chalk.green(`Enter your ${chalk.yellow('GitHub Access token')} (Optional if using an .env file):`),
},
{
name: 'connected',
type: 'confirm',
message: chalk.green(`Connected to the ${chalk.white('Adobe network?')} ${chalk.yellow('(Check before continuing)')}:`),
default: true,
},
];
return inquirer.prompt(questions);
Expand Down

0 comments on commit 6a104b2

Please sign in to comment.