feat: add changelog to release (#11)

- closes #5

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/11
This commit is contained in:
Michael Kriese 2023-01-04 14:41:12 +00:00
parent e4af9c28af
commit c2199f0640
4 changed files with 2910 additions and 1 deletions

18
tools/changelog.mjs Normal file
View file

@ -0,0 +1,18 @@
import conventionalChangelogCore from 'conventional-changelog-core';
import conventionalChangelogPreset from 'conventional-changelog-conventionalcommits';
import fs from "node:fs"
const config = conventionalChangelogPreset();
const file = process.argv[3] ? fs.createWriteStream(process.argv[3]): process.stdout;
conventionalChangelogCore(
{
config,
releaseCount: 2,
},
{ version: process.argv[2], linkCompare: false },
undefined,
undefined,
{ headerPartial: '' }
).pipe(file);