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

Feature request: based on plugin version, try to guess tag for correct README.md version #319

Open
jennydaman opened this issue Jan 13, 2023 · 0 comments
Labels
enhancement Something to be improved

Comments

@jennydaman
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something to be improved
Projects
None yet
Development

No branches or pull requests

1 participant