forgejo-helm/tools/changelog.mjs
Michael Kriese c2199f0640 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
2023-01-04 14:41:12 +00:00

18 lines
500 B
JavaScript

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);