feat(pra): fetch latest release from GitHub API with fallback#53
Merged
mrrobot47 merged 3 commits intoEasyEngine:developfrom Dec 24, 2025
Merged
feat(pra): fetch latest release from GitHub API with fallback#53mrrobot47 merged 3 commits intoEasyEngine:developfrom
mrrobot47 merged 3 commits intoEasyEngine:developfrom
Conversation
- Use GitHub API to dynamically fetch latest phpRedisAdmin release - Show warning and use fallback when API is unreachable
There was a problem hiding this comment.
Pull request overview
This pull request enhances the phpRedisAdmin installation process to automatically fetch and install the latest release from GitHub's API, with a fallback mechanism to ensure reliability when the API is unavailable.
- Switches from a hardcoded version (1.11.0) to dynamically fetching the latest release via GitHub API
- Implements a fallback to version 1.26.0 when the GitHub API is unreachable
- Adds conditional logic to handle both "latest" and specific version installations
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| ee-tools.json | Updates phpRedisAdmin configuration to use GitHub API endpoint, sets version to "latest", and adds fallback_version |
| src/Admin_Tools_Command.php | Implements GitHub API integration to fetch latest release zipball URL with fallback logic and error handling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add https stream context for HTTPS requests - Replace error suppression with proper error handling and debug logging - Add JSON parsing error check with debug logging - Fix specific version URL construction to use direct archive URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.