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,
|
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");
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user