Skip to content

Commit

Permalink
feat(git-node): prompt before attempting branch-diff (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Nov 19, 2024
1 parent dfa9c92 commit 391487b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/prepare_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 391487b

Please sign in to comment.