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

Sort versions from releases JSON response #37

Merged
merged 3 commits into from
Nov 11, 2021
Merged

Sort versions from releases JSON response #37

merged 3 commits into from
Nov 11, 2021

Conversation

radeksimko
Copy link
Member

This PR is to provide some more consistent results when using the releases.List method, such that available versions are sorted from oldest to newest. This also consolidates the places where we parse raw version into *version.Version.

Copy link
Member

@kmoe kmoe left a comment

Choose a reason for hiding this comment

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

Would expect a test for this, but happy with filling in a versions_test.go later.

@radeksimko
Copy link
Member Author

Thanks for the review, I added an E2E test as mocking would be a bit more difficult to add at this point to that particular piece of code.

@radeksimko radeksimko merged commit af09eee into main Nov 11, 2021
@radeksimko radeksimko deleted the sort-versions branch November 11, 2021 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants