-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Release tooling: Fix getting changes from wrong tag #23571
Conversation
scripts/release/utils/git-client.ts
Outdated
* ensures that prereleases are listed as earlier than stable releases. | ||
* eg. in the following list, this config correctly puts 7.1.0 on the top instead of the bottom: | ||
* 7.1.0 | ||
* 7.1.0-rc.2 | ||
* 7.1.0-rc.1 | ||
* See https://stackoverflow.com/a/52680984 | ||
*/ |
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.
What does it mean to be at the bottom or top of this list, please add a comment, it's not obvious what the effects are from this change.
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.
Updated it, is this better?
Release tooling: Fix getting changes from wrong tag (cherry picked from commit 950df76)
What I did
Changed the git config slightly when getting changes from the git history. Previously it would list prereleases as later than stable releases, which caused the change calculation to get more changes than actually true. It would think that
7.1.0-rc.2
was later than7.1.0
, causing it to list the changes for7.2.0-alpha.0
to go all the way back to7.1.0-rc.2
, even though it only needed to go back to7.1.0
.The two Svelte vite changes listed in the changelog for
7.2.0-alpha.0
was actually already released in7.1.0
, but the faulty change looking included them in7.2.0-alpha.0
as well:https://github.com/storybookjs/storybook/pull/23504/files#diff-c39e91bd3d7f02d36f0212bd4dc4958db10059da7ab8c79bbe546a12e8973cd6R4-R5
Also updated
next.json
manually as it was forgotten when updatingCHANGELOG.prerelease.md
manually in7.2.0-alpha.0
. (which is okay, because that documentation change isn't merged yet)How to test
Checklist
MIGRATION.MD
Maintainers
ci:normal
,ci:merged
orci:daily
GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/lib/cli/src/sandbox-templates.ts
["cleanup", "BREAKING CHANGE", "feature request", "bug", "build", "documentation", "maintenance", "dependencies", "other"]