* fix(commit.ts): add check for cancelation of git push confirmation prompt

This commit is contained in:
di-sukharev
2023-03-09 21:23:58 +08:00
parent 5d9d1c972a
commit 88006b8693
+1 -1
View File
@@ -51,7 +51,7 @@ ${chalk.grey('——————————————————')}`
message: 'Do you want to run `git push`?'
});
if (isPushConfirmedByUser) {
if (isPushConfirmedByUser && !isCancel(isPushConfirmedByUser)) {
const { stdout } = await execa('git', ['push']);
outro(`${chalk.green('✔')} successfully pushed all commits`);
outro(stdout);