Skip to content

Can I use custom content? #165

Open
Open
@wintercounter

Description

@wintercounter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions