bazel-contrib / bcr-ui

Website for the Bazel Central Registry
https://registry.bazel.build
Apache License 2.0
14 stars 9 forks source link

Detect github release tag format via API calls #116

Closed hobofan closed 2 months ago

hobofan commented 8 months ago

This PR aims to tackle #58 as good as is possible without requiring the tag format to be additional metadata in the BCR, by requesting the Github API.

The procedure goes as follows:

For the v-prefixed and unprefixed tag formats, we can then link to the exact release notes. For the "unknown" format, we generate a link to the release search page.

Overall this should improve the experience a lot, as we never link the user to a 404 page, and only in rare cases (hitting the rate limit via extensive browsing + the release search page showing another release at the top) link to subpar information.


FIXES #58