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

Problem using --starting-version with --tag-pattern #209

Closed
cmastrandrea opened this issue Jun 11, 2021 · 2 comments
Closed

Problem using --starting-version with --tag-pattern #209

cmastrandrea opened this issue Jun 11, 2021 · 2 comments

Comments

@cmastrandrea
Copy link
Contributor

I'm trying to create a changelog for just one specific release version (e.g. v12.2.0).

If I use --starting-version v12.2.0, it creates a changelog of v12.2.0, v12.2.1, etc (as expected). So I added --tag-pattern as well to restrict the tags to just the specific version:
$ auto-changelog --starting-version v12.2.0 --tag-pattern v12.2.0 --commit-limit false

However that creates a changelog that includes every commit in the history, not just those for v12.2.0. Is this a bug, or am I using --tag-pattern in an unexpected way?

Any other way to get just a changelog of one specific release version?

@cmastrandrea
Copy link
Contributor Author

Perhaps an --ending-version option is what is needed here, if this isn't the intended use of --tag-pattern or there's some technical limitation with --tag-pattern supporting a full tag version

@cookpete
Copy link
Owner

cookpete commented Feb 3, 2022

The problem here is that --tag-pattern is applied before the tags are "enriched" with the diff, which uses the previous tag to store a diff string used later. --starting-version is applied afterwards, so previous versions can be removed without losing the diff data of the remaining tags. Great job with the PR – I'll merge it soon.

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

2 participants