Skip to content

Commit

Permalink
fix: default answers in release --prepare (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS authored Nov 2, 2024
1 parent c953d93 commit 9a40d21
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/prepare_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ export default class ReleasePreparation extends Session {
await this.updateMajorChangelog();
cli.stopSpinner(`Updated CHANGELOG_V${versionComponents.major}.md`);

await cli.prompt('Finished editing the changelogs?',
{ defaultAnswer: false });

// Create release commit.
const shouldCreateReleaseCommit = await cli.prompt(
'Create release commit?');
Expand All @@ -272,9 +269,7 @@ export default class ReleasePreparation extends Session {
cli.warn(`Please manually edit commit ${lastCommitSha} by running ` +
'`git commit --amend` before proceeding.');

await cli.prompt(
'Finished editing the release commit?',
{ defaultAnswer: false });
await cli.prompt('Finished editing the release commit?');
}

cli.separator();
Expand Down Expand Up @@ -625,8 +620,7 @@ export default class ReleasePreparation extends Session {
]);

cli.log(`${messageTitle}\n\n${messageBody.join('')}`);
const useMessage = await cli.prompt(
'Continue with this commit message?', { defaultAnswer: false });
const useMessage = await cli.prompt('Continue with this commit message?');
return useMessage;
}

Expand Down

0 comments on commit 9a40d21

Please sign in to comment.