fix: make commit body wrap properly
make full commit message display as a note, creating proper wrapping
This commit is contained in:
@@ -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");
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user