Open hugovk opened 2 years ago
Thanks for opening your first issue here! Be sure to follow the issue template!
I did some work to make it modular in recent changes to changelogTemplate, shouldn't be too hard to re-use that it in the API as well.
If you'd like to work on this:
Make sure you read through CONTRIBUTING.md to understand the file structure, and go through this PR. Also, please read through the HACKING.md file to setup the project locally. Reading these will help you get onboarded faster and make sure that your PR sees a speedy merge.
And finally, we have a very helpful guide for new contributors during Hacktoberfest as well.
To test your changes, validate these pages:
/api/fedora.json
/api/fedora/34.json
This will probably done in #2080.
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is.
Sometimes the JSON response includes a
link
for a release:https://endoflife.date/api/ubuntu.json
Sometimes not:
https://endoflife.date/api/drupal.json
But in this latter case, there's a top-level
changelogTemplate
value:https://raw.githubusercontent.com/endoflife-date/endoflife.date/master/products/drupal.md
And it's used to generate release links on the website:
https://endoflife.date/drupal
Describe the solution you'd like A clear and concise description of what you want to happen.
Would it be a good idea to:
links
for each release from thechangelogTemplate
, and include in the JSON?changelogTemplate
top-level value in the JSON, for API users to generate links themselves? (Would need to make sure all template variables are available too.)Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
No change.