forgejo-helm/tools/changelog.mjs

13 lines
289 B
JavaScript
Raw Normal View History

2024-09-12 06:31:14 +00:00
import { getChangelog } from './changelog/util.js';
2024-11-01 15:10:12 +00:00
const stream = getChangelog(!!process.argv[2]).setEncoding('utf8');
2024-11-01 15:10:12 +00:00
const changes = (await stream.toArray()).join('');
if (!changes.length) {
console.error('No changelog found');
process.exit(1);
}
process.stdout.write(changes);