11
src/index.ts
11
src/index.ts
@@ -119,6 +119,15 @@ const GetConfig = async () => {
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
const body = await text({
|
||||
message: `Briefly describe made changes in imperative tense, recommended length 100, can be left empty`,
|
||||
});
|
||||
|
||||
if (isCancel(body)) {
|
||||
cancel("Commit creation cancelled");
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
const isBreaking = await confirm({
|
||||
message: "Does this commit have breaking changes?",
|
||||
initialValue: false,
|
||||
@@ -152,7 +161,7 @@ const GetConfig = async () => {
|
||||
scope ? `(${scope.toString()})` : ``
|
||||
}${isBreaking ? "!" : ""}: ${message.toString()}${
|
||||
resolvesIssue ? ` (${issue?.toString()})` : ``
|
||||
}`;
|
||||
}${body ? `\n\n${body}` : ``}`;
|
||||
|
||||
if (stageAll) {
|
||||
await simpleGit().add(".").commit(commitMessage);
|
||||
|
||||
Reference in New Issue
Block a user