Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve existing release notes #156

Closed
tiagoboeing opened this issue Feb 27, 2020 · 4 comments
Closed

Preserve existing release notes #156

tiagoboeing opened this issue Feb 27, 2020 · 4 comments

Comments

@tiagoboeing
Copy link

Is possible preserve a old changelog and only add new commits using this dependency?

Sometimes some repositories not follow a styleguide for commit messages from the beginning.

@cookpete
Copy link
Owner

There's no way to do this out of the box, although there is a --stdout option to output the changelog to stdout. You could store your old changelog in OLD_CHANGELOG.md or something, and then concat the result of auto-changelog --stdout with OLD_CHANGELOG.md into CHANGELOG.md

@ljharb
Copy link
Contributor

ljharb commented Feb 27, 2020

It'd be a really useful feature to add for me; perhaps something like an HTML comment as a marker that auto-changelog automatically knows how to recognize?

@cookpete
Copy link
Owner

@ljharb Right now auto-changelog just overwrites any existing CHANGELOG.md and doesn't even check for an existing one. I suppose it wouldn't be too crazy to load the current one, and prepend rather than overwrite based on some hidden token. I'll re-open this issue as a reminder.

@cookpete cookpete reopened this Feb 28, 2020
@cookpete
Copy link
Owner

As of 2.1.0 you can add <!-- auto-changelog-above --> to your templates, and the generated changelog will be added above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants