Skip to content

Conversation

@lerouxb
Copy link
Contributor

@lerouxb lerouxb commented Apr 3, 2025

GitHub's REST API returns releases sorted incorrectly, so 1.45.5-beta.9 appears before 1.45.5-beta.10. We then pick the first non-draft of the relevant channel as the latest one for the manifest on the download centre and end up with .9 and not .10.

This sorts the releases with semver first.

I tested this by just putting the code in a separate file and running it there, printing to the console. Once this is merged we can just re-run the most recent action that used this code and that should update the download centre correctly.

@lerouxb lerouxb added bug no release notes Fix or feature not for release notes no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) labels Apr 3, 2025
@github-actions github-actions bot added the fix label Apr 3, 2025
Copy link
Collaborator

@paula-stacho paula-stacho left a comment

Choose a reason for hiding this comment

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

Such a classic 😅
Is this a known issue with github, or it's a non issue because it doesn't promise a particular order?

@lerouxb
Copy link
Contributor Author

lerouxb commented Apr 4, 2025

Prereleases aren't very well specified by semver and there are just loads of issues like this even within one implementation, let alone across multiple for different languages.

@lerouxb lerouxb merged commit 9bf23f5 into main Apr 4, 2025
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix no release notes Fix or feature not for release notes no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants