|
const ghreadme = await fetch(`https://api.github.com/repos/${repo}/readme`); |
ChRIS_store_ui always shows the latest README, which is not always applicable because the plugin might be of an older version. From plugin_version it might be possible to guess a git tag from which you can get an older, more accurate README from. For example: if plugin version is "1.2.3" then check if the git tag "v1.2.3" or "1.2.3" exists. If so, get the README from the commit with that tag. Fallback case is to use the latest README.