Standard-version: feat: generate changelog from scratch

Created on 22 Jul 2017  路  13Comments  路  Source: conventional-changelog/standard-version

Hi there!

Why

I encountered a problem in the genration of my changelog for several versions of a project. See this issue for more details.

What

I would like to generate from scratch my changelog and then have proper entries for each version.

Most helpful comment

Any progress on this?

All 13 comments

I've just used conventional-changelog-cli to do the job for me.

conventional-changelog -p angular -i CHANGELOG.md -s -r 0

This will generate the changelog for all your previouse tags.

@weaintplastic
Thanks for the suggestion :)

standard-version --first-release doesn't work for you?

@stevemao unfortunately not. --first-release is not going through the entire commit history and creates a changelog from scratch. It just does not bump the version number.

@weaintplastic @Conaclos I'll lead with my periodic apology related to disappearing from open-source馃槢

One thought, perhaps we could document some advanced topics, e.g., using conventional-changelog to regenerate commits, in docs/advanced.md?

I feel like this feature should live here too by adding another flag...

@stevemao I agree. Would be really helpful to integrate that.

+1

+1

+1

Simply adding resetChangelog: true to the context would make this possible.

const context = { version: newVersion, resetChangelog: true }

See:
https://github.com/conventional-changelog/standard-version/blob/106d0390f7fe73c93131511caef17f2dca37fd6a/lib/lifecycles/changelog.js#L38-L46

Would be simple to implement with a command flag.
Example: https://github.com/r15ch13/standard-version/commit/8561f1ca880b4eb000a614ae9dbc6f5fcaab2d60

^ would be quite a useful feature.

Any progress on this?

Was this page helpful?
0 / 5 - 0 ratings