Skip to content

Commit 391487b

Browse files
authored
feat(git-node): prompt before attempting branch-diff (#869)
1 parent dfa9c92 commit 391487b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/prepare_release.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,11 @@ export default class ReleasePreparation extends Session {
167167
return this.prepareSecurity();
168168
}
169169

170-
if (this.runBranchDiff) {
170+
const runBranchDiff = await cli.prompt(
171+
'Do you want to check if any additional commits could be backported ' +
172+
'(recommended except for Maintenance releases)?',
173+
{ defaultAnswer: this.runBranchDiff });
174+
if (runBranchDiff) {
171175
// TODO: UPDATE re-use
172176
// Check the branch diff to determine if the releaser
173177
// wants to backport any more commits before proceeding.

0 commit comments

Comments
 (0)