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

Missing version in CHANGELOG.md: Calculating the next version fails if tag contains a name/prefix #2435

Closed
restfulhead opened this issue Feb 23, 2024 · 0 comments · Fixed by #2436
Labels
bug Something isn't working

Comments

@restfulhead
Copy link
Contributor

Describe the bug

I'm using auto in a mono repository and my tags contain the name of each sub-package, e.g. my-sub-package-v1.0.0. When generating the changelog, I pass in the previous tag as follows:

npx auto changelog --from my-sub-package-v1.0.0

This works, but causes the version number in CHANGELOG.md to be missing. (The headline that usually renders as <version> (<date>) only displays the current date.)

To Reproduce

  • Create a tag with a prefix such as my-sub-package-v1.0.0
  • Generate the changelog: npx auto changelog --from my-sub-package-v1.0.0
  • Observe that the version is missing in the generated CHANGELOG.md file

Expected behavior
The headline in the Changelog should contain the next version number.

Additional context

calcNextVersion in Release should pass only the number to inc, not the entire tag name. I'm going to submit a pull request in a moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant