From 782894dae3c5af306fc0e221656a9328bef37357 Mon Sep 17 00:00:00 2001 From: Olivers Vitins Date: Tue, 19 Dec 2023 22:15:42 +0200 Subject: [PATCH] fix(commands): failure to cancel commit creation --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index 52838a4..3a53ea1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -177,6 +177,11 @@ program cancel("Commit creation cancelled"); process.exit(0); } + + if (!proceedCommitting) { + cancel("Cancelled, please split this commit into smaller ones"); + process.exit(0); + } } const type: string | symbol = await select({