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

Ensure outputUnreleased resolved correctly given lernaPackage/tagPrefix #865

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Xunnamius
Copy link

As of conventional-changelog-core@4.2.4, options.outputUnreleased is erroneously set to true when using a custom tag prefix via tagPrefix or lernaPackage. This happens because the check that determines options.outputUnreleased's value is hardcoded expecting "v" + version with no regard for custom tag prefixes.

The result is extremely odd behavior when generating changelogs for monorepo packages. In this example, it repeats the entire changelog with the repeated entry using an invalid version. In this example, when used alongside semantic-release—which can append the old changelog to the new—it repeats the second entry in the changelog twice. In this example, without using semantic-release, it repeats the top changelog entry; the top entry is empty because there are no "unreleased" commits in this example.

This PR fixes this bug.

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

Successfully merging this pull request may close these issues.

None yet

1 participant