-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add core release
command(s) to fetch available releases through the .org API
#108
Comments
core release list
and core release get
commandscore release
command(s) to fetch available releases through the .org API
It doesn't seem to be possible to query for arbitrary patch version through the WordPress.org API. Am I missing something, like an extra query argument or a different endpoint? |
Also, the |
Maybe @ocean90 knows more here? |
Doesn't he always do? |
Can you tell me what endoints you are trying? What's the request looking like? To retrieve all available versions you could use https://api.wordpress.org/core/stable-check/1.0/. |
Adds retrieval of available releases from the wordpress.org API server. Version constraints are interpreted in the following way right now: - `4` => anything that starts with the major version 4. This would mean `>= 4.0.0 && < 5.0.0`. - `4.8` => anything that starts with the major version 4 and minor version 8. This would mean `>= 4.8.0 && < 4.9.0` Some notes: - Patch, pre-release or build constraints are not supported yet, as the API server does not provide querying functionality for these. - I initially added a `--locale` flag, but removed it again for now, as the API server does not seem to respect it for all results, only for the very latest version. Fixes #108
The current code uses |
Yes, indeed, I'm using the
|
The call to the |
@ocean90 Do you know whether there might be a caching issue with |
There's no caching for that endpoint. |
Shouldn't that be changed, then? It seems slow and unreliable. |
@ocean90 Is there any update on this regarding the missing caching on the |
It would be useful to be able to easily query the available releases of WordPress core through the .org API and also get the download URLs for a given update.
A use case I'm currently working on that this would benefit is wp-cli/wp-cli-tests#51
The text was updated successfully, but these errors were encountered: