fix(commands): have unreleased section for changelog
This commit is contained in:
@@ -258,13 +258,15 @@ program
|
|||||||
console.log("Generation of this changelog is based on commits");
|
console.log("Generation of this changelog is based on commits");
|
||||||
|
|
||||||
for (const commit of commits) {
|
for (const commit of commits) {
|
||||||
const tag = semver.sort(
|
const tag =
|
||||||
|
semver.sort(
|
||||||
(await simpleGit().tags([`--contains=${commit.hash}`])).all
|
(await simpleGit().tags([`--contains=${commit.hash}`])).all
|
||||||
)[0]!;
|
)[0]! || "Unreleased";
|
||||||
|
|
||||||
const currentCommitStack = parsedCommitStacks.find(
|
const currentCommitStack = parsedCommitStacks.find(
|
||||||
(commitStack) => commitStack.version === tag
|
(commitStack) => commitStack.version === tag
|
||||||
) || {
|
) || {
|
||||||
version: tag || "",
|
version: tag || "Unreleased",
|
||||||
breaking: [],
|
breaking: [],
|
||||||
features: [],
|
features: [],
|
||||||
fixes: [],
|
fixes: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user