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 [bower] version badge #9567

Merged
merged 2 commits into from Sep 11, 2023
Merged

Conversation

chris48s
Copy link
Member

Our bower badges use the libraries.io API. Also bower is a low traffic badge/mostly abandoned service.

The version badge (which should be latest stable version) consistently returns "no releases" for pretty much any package.

This is because if you look at the API response for a bunch of packages e.g:

they all return latest_stable_release_number: null, although it is worth noting that all of them do have a proper version number against latest_release_number, so the include_prereleases variant works in all those cases.

Given the latest_release_number number doesn't seem to be populated for any package (or at least I can't find an example where it works), I suggest we just switch this so that the version badge returns latest_release_number whether you call it with include_prereleases or not.

@chris48s chris48s added service-badge Accepted and actionable changes, features, and bugs keep-service-tests-green Related to fixing failing tests of the services labels Sep 11, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 11, 2023

Messages
📖 ✨ Thanks for your contribution to Shields, @chris48s!

Generated by 🚫 dangerJS against dd21cdc

Copy link
Member

@calebcartwright calebcartwright left a comment

Choose a reason for hiding this comment

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

sounds reasonable to me

@calebcartwright calebcartwright added this pull request to the merge queue Sep 11, 2023
Merged via the queue into badges:master with commit f545553 Sep 11, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep-service-tests-green Related to fixing failing tests of the services service-badge Accepted and actionable changes, features, and bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants