feat: change tag message schema (#11)

This commit is contained in:
2023-12-15 14:59:41 +02:00
parent f51bb88de4
commit 498c830e34
2 changed files with 41 additions and 43 deletions

View File

@@ -69,9 +69,7 @@ program
? null ? null
: await confirm({ : await confirm({
message: "Stage all changes?", message: "Stage all changes?",
initialValue: ( initialValue: (await simpleGit().diff(["--cached"])).toString()
await simpleGit().diff(["--name-only", "--cached"])
).toString()
? false ? false
: true, : true,
}); });
@@ -446,8 +444,8 @@ program
.commit(`chore(release): v${version}`, sign ? ["-S"] : []) .commit(`chore(release): v${version}`, sign ? ["-S"] : [])
.tag( .tag(
sign sign
? [`-s`, `v${version}`, `-m`, `"Version ${version}"`] ? [`-s`, `v${version}`, `-m`, `"v${version}"`]
: [`-a`, `v${version}`, `-m`, `"Version ${version}"`] : [`-a`, `v${version}`, `-m`, `"v${version}"`]
); );
}); });