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

Fix findClosestVersionTagLessThanVersion in release tool #7374

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

Nokel81
Copy link
Collaborator

@Nokel81 Nokel81 commented Mar 17, 2023

No description provided.

@Nokel81 Nokel81 added the chore label Mar 17, 2023
@Nokel81 Nokel81 added this to the 6.5.0 milestone Mar 17, 2023
@Nokel81 Nokel81 requested a review from a team as a code owner March 17, 2023 14:33
@Nokel81 Nokel81 requested review from ixrock and gabriel-mirantis and removed request for a team March 17, 2023 14:33
@@ -120,7 +120,7 @@ function findClosestVersionTagLessThanVersion(tags: string[], version: SemVer):
.filter(isDefined)
.filter(version => !version.prerelease.includes("cron"))
.sort(semver.rcompare)
.filter(version => semver.lte(version, version));
.filter(v => semver.lte(v, version));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's changed here except renamed variable for filtering?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were two variables in this function called "version" that was the bug

@Nokel81 Nokel81 merged commit 8035f92 into master Mar 17, 2023
@Nokel81 Nokel81 deleted the fix-release-tool branch March 17, 2023 15:50
Nokel81 added a commit that referenced this pull request Mar 20, 2023
gabriel-mirantis pushed a commit that referenced this pull request Mar 21, 2023
@Nokel81 Nokel81 mentioned this pull request Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants