Add major version as tag in changelog

This commit is contained in:
Misode
2021-11-20 00:48:28 +01:00
parent b92113d48a
commit 58fe2fa03a

View File

@@ -22,7 +22,10 @@ export async function getChangelogs() {
const index = await (await fetch(`${repo}/index.json`)).json() as string[]
Changelogs = (await Promise.all(
index.map((group, i) => fetchGroup(parseVersion(group), i))
)).flat()
)).flat().map<ChangelogEntry>(change => ({
...change,
tags: [change.group.id, ...change.tags],
}))
}
return Changelogs
}