
- closes #5 Co-authored-by: Michael Kriese <michael.kriese@visualon.de> Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/11
18 lines
500 B
JavaScript
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);
|