releaser-tools
releaser-tools copied to clipboard
Can I use custom content?
I want to use the changelog generated by standard-version
because it look much nicer. Is it possible somehow to pass custom content? Maybe a new flag where I can pass a changelog's path to be used?
I have a regex to fetch content from changelogs.
Something like this:
const start = changelog.match(new RegExp(`^#.*${escapeRegExp(version)}.*`, 'gm'))
changelog += '\n#0.0.0' // eslint-disable-line
const match = Array.from(
changelog.matchAll(new RegExp(`${escapeRegExp(start)}([\\s\\S]+?)(^#{1,4}.*\\d+\\.\\d+\\.\\d+)`, 'gm'))
)[0]
This will search for headers with a specified semver version included until another header including semver version and use the content between this two.
I can understand if there's no intention to implement such solution, however custom content would be nice and I couldn't find any docs related to achieve such.