From 6dabffe3a7a67788131b0051c6630767d0d2431d Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Sat, 2 Nov 2024 00:56:08 -0300 Subject: [PATCH] fix: default answers in release --prepare --- lib/prepare_release.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/prepare_release.js b/lib/prepare_release.js index 6b0aa131..834f8509 100644 --- a/lib/prepare_release.js +++ b/lib/prepare_release.js @@ -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?'); @@ -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(); @@ -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; }