-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Source changelogs for programmatic consumption #430
Comments
Hey @gioamato, thanks for the suggestion. I can see how this might be useful to expose somewhere in the frontend – I'm not sure if there is a working Dependabot use case per se as yet, but let me know if that's wrong? I think it's potentially a reasonably big change. If you are hoping to consistently pull out the exact changes for each version number I'm also not sure that's going to work. I skimmed some entries from the API and the formatting is pretty inconsistent. In each plugin in the array returned by API v1.1, While the version numbered bits later in (or sometimes from the start of) the changelog seem to consistently show in If you do still want to look at saving the whole changelog at package level, I'd suggest the steps would be something like:
|
+1 on this same for renovate. not sure about the parsing tho. however github supports html. example urls
fetch("https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&slug=redirection")
.then(response => response.json())
.then(data => console.log(data.sections.changelog))
.catch(error => console.log(error)) refs |
Wanted to ask for this, too. Thank you. |
@LeoColomb id like to work on this, but before i start, id like your takeaways. |
hmm maybe its better if renovate and dependabot fix this instead. |
Well, I'm not sure the process will be the same, as this plugins API provides an (almost) well formatted and well-structured changelog value. You should feel lucky 😁 My main takeaways though are that WordPress changelog is:
Probably better, I agree, but comes with some additional challenges (especially HTML handling). |
It might be useful to source changelogs from WordPress.org with version tags (eg. dependabot could show it in PRs).
I could try to add it and open a PR if you just point me in the right direction.
The text was updated successfully, but these errors were encountered: