fix: make commit body wrap properly

make full commit message display as a note, creating proper wrapping
This commit is contained in:
2023-08-19 20:43:18 +03:00
parent e9d3c5e293
commit 2be2887ce5

View File

@@ -5,6 +5,7 @@ import {
confirm, confirm,
intro, intro,
isCancel, isCancel,
note,
outro, outro,
select, select,
text, text,
@@ -29,7 +30,7 @@ const GetConfig = async () => {
(async () => { (async () => {
const config = await GetConfig(); const config = await GetConfig();
intro(`Creating a conventional commit message`); intro("Creating a conventional commit message");
if (!fs.existsSync(path.join(process.cwd(), ".git"))) { if (!fs.existsSync(path.join(process.cwd(), ".git"))) {
cancel("Git repository has not been initialized"); cancel("Git repository has not been initialized");
@@ -171,5 +172,7 @@ const GetConfig = async () => {
await simpleGit().commit(commitMessage); await simpleGit().commit(commitMessage);
} }
outro(`"${commitMessage}" - ready to push`); note(commitMessage);
outro("Finished creating a conventional commit message");
})(); })();