From 2be2887ce554a2b8cb62223fb614fb9cf8f0ae55 Mon Sep 17 00:00:00 2001 From: Olivers Vitins Date: Sat, 19 Aug 2023 20:43:18 +0300 Subject: [PATCH] fix: make commit body wrap properly make full commit message display as a note, creating proper wrapping --- src/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7f14120..1ae3bb7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,6 +5,7 @@ import { confirm, intro, isCancel, + note, outro, select, text, @@ -29,7 +30,7 @@ const GetConfig = async () => { (async () => { const config = await GetConfig(); - intro(`Creating a conventional commit message`); + intro("Creating a conventional commit message"); if (!fs.existsSync(path.join(process.cwd(), ".git"))) { cancel("Git repository has not been initialized"); @@ -171,5 +172,7 @@ const GetConfig = async () => { await simpleGit().commit(commitMessage); } - outro(`"${commitMessage}" - ready to push`); + note(commitMessage); + + outro("Finished creating a conventional commit message"); })();