feat(pra): fetch latest release from GitHub API with fallback #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the way the phpRedisAdmin tool is fetched and installed to always use the latest release from GitHub, with a fallback mechanism in case the API is unavailable. The changes improve reliability and ensure users get the most recent version automatically.
phpRedisAdmin version management and installation:
ee-tools.jsonconfiguration to fetch the latest phpRedisAdmin release info from the GitHub API, set the default version tolatest, and added afallback_versionfor reliability.install_prafunction insrc/Admin_Tools_Command.phpto dynamically retrieve the latest release zipball URL from the GitHub API, and to fall back to a stable version if the API call fails, providing error and warning messages as needed.