From 391487bb977fe122d322637c21c6f7ee8881f6b4 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 19 Nov 2024 16:16:17 +0000 Subject: [PATCH] feat(git-node): prompt before attempting branch-diff (#869) --- lib/prepare_release.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/prepare_release.js b/lib/prepare_release.js index 612ab233..ea4a89eb 100644 --- a/lib/prepare_release.js +++ b/lib/prepare_release.js @@ -167,7 +167,11 @@ export default class ReleasePreparation extends Session { return this.prepareSecurity(); } - if (this.runBranchDiff) { + const runBranchDiff = await cli.prompt( + 'Do you want to check if any additional commits could be backported ' + + '(recommended except for Maintenance releases)?', + { defaultAnswer: this.runBranchDiff }); + if (runBranchDiff) { // TODO: UPDATE re-use // Check the branch diff to determine if the releaser // wants to backport any more commits before proceeding.