Repository navigation
Show the latest release of plugins in the plugin index if exist - #7480
Conversation
6543
commented
Nov 4, 2026
|
Surge PR preview deployment was removed |
|
In your screenshot, why is there no badge for git and codecov? They should have a latest release. (Surge preview is not working so I can't check right now) Besides that, I'm not really sure how that improves our index. Looking up the latest release is very simple and shouldn't take you much time. |
in the preview it exists, it's just a screenshot from local test build that i did to oftern and github hat rate limited me ...
that's interesting, it works for me ... how does it fail for you?
This is more of an UX decission for people to visualize we do care about updates, |
Can't connect to the server at all. Not with my browser, but not even with |
|
for such things you could just use the tor browser, it gets it's DNS and trafic from definetly outside your network or even ISP if that one is currently blocking stuff etc... |
|
and i perhaps can use graphql to speedup gh ... |
The latest release was the only metadata item on the plugin page without a link, next to the linked container image and website. The release APIs of GitHub, Gitea and Forgejo return the web page of the release as html_url, so keep it with the tag and link to it.
Anonymous requests to the GitHub API are limited to 60 per hour, so a second local build of the plugin index already fails the release lookups for most plugins hosted on GitHub, and the docs pipeline can hit it the same way. Codeberg limits anonymous requests as well. Read optional tokens from GITHUB_TOKEN and CODEBERG_TOKEN and send each one only to the API host it belongs to. Other forges are a new entry in the host table. v2: drop the sentence about where the tokens are sent from the docs and put one sentence per line there, which is easier to edit by hand.
A failed release lookup only logged the HTTP status, so a 403 from GitHub did not tell if the token was wrong or blocked by a policy. GitHub, Gitea and Forgejo return the reason as message in the error body, so log it as well.
Give the plugin index build the GITHUB_TOKEN and CODEBERG_TOKEN it reads for the release lookups, so the docs pipeline does not hit the rate limits of anonymous API requests. v2: drop the comment that only repeated what the step says.
The docs files of plugins were still fetched anonymously, from raw.githubusercontent.com and codeberg.org, so a build could still run into the rate limits that the tokens should avoid. GitHub limits anonymous downloads from raw.githubusercontent.com like anonymous API requests. Move the token table out of the release lookup and use it for the docs files as well, with raw.githubusercontent.com as GitHub host.
|
@qwerty287 all addressed ... PS: grapql does not make sense here ... |
