-
Notifications
You must be signed in to change notification settings - Fork 4k
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
chore: fix CHANGELOG generation for v2 branch #13019
Conversation
The CHANGELOG for the v2 releases has been inaccurate, only showing a fraction of the changes and mixing v1 and v2 releases side by side. The issue appears to be how `conventional-changelog` handles interleaving changes across major versions on separate branches. After digging into the internals of conventional-changelog and standard-release a bit, I don't see a supported way to achieve our desired outcome. However, I did come up with a hack that results in the right end result. By (locally) removing all v1.* tags, and running the release, a correct CHANGELOG is created. Likewise, on the master/v1 branch, removing v2.* tags prior to bumping does not appear to have any adverse effects. I would be thrilled for someone to point out the option(s) that I missed to do this more elegantly, but for now this seems to work. I also took the liberty of re-generating the v2 CHANGELOG for the previous releases using this fix, to show what the correct output should look like. I will backport the changes to bump.js to master once this has been shipped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay with these Hax To The Max but my mind is more and more settling on ditching conventional-whatever
and reimplementing it ourselves in 1/5th of the code and with more flexibility.
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
See #13019 for the original fix, which was committed to the v2-main branch. This backports the change to the master/v1 branch.
See #13019 for the original fix, which was committed to the v2-main branch. This backports the change to the master/v1 branch. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
See aws#13019 for the original fix, which was committed to the v2-main branch. This backports the change to the master/v1 branch. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
See #13019 for the original fix, which was committed to the v2-main branch. This backports the change to the master/v1 branch. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
The CHANGELOG for the v2 releases has been inaccurate, only showing a fraction
of the changes and mixing v1 and v2 releases side by side.
The issue appears to be how
conventional-changelog
handles interleavingchanges across major versions on separate branches. After digging into the
internals of conventional-changelog and standard-release a bit, I don't see a
supported way to achieve our desired outcome.
However, I did come up with a hack that results in the right end result. By
(locally) removing all v1.* tags, and running the release, a correct CHANGELOG
is created. Likewise, on the master/v1 branch, removing v2.* tags prior to
bumping does not appear to have any adverse effects.
I would be thrilled for someone to point out the option(s) that I missed to do
this more elegantly, but for now this seems to work.
I also took the liberty of re-generating the v2 CHANGELOG for the previous
releases using this fix, to show what the correct output should look like.
I will backport the changes to bump.js to master once this has been shipped.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license