feat: add --preview flag to install scripts for pre-release versions#889
Merged
Conversation
Add support for installing preview (pre-release) versions of azqr: - install.sh: add --preview and --help flags - install.ps1: add -Preview switch parameter - Update docs, README, and jumpstart tutorial with preview examples When --preview/-Preview is passed, the scripts query the GitHub releases API and filter for pre-release versions instead of using /releases/latest. Graceful error handling when no pre-release is available. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #889 +/- ##
=======================================
Coverage 20.21% 20.21%
=======================================
Files 105 105
Lines 7431 7431
=======================================
Hits 1502 1502
Misses 5817 5817
Partials 112 112
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Closes #888
Summary
Add support for installing preview (pre-release) versions of azqr via the install scripts.
Changes
Scripts
scripts/install.sh: Added--previewand--helpflags. When--previewis passed, queries/releasesAPI and filters forprerelease == truewith jq.scripts/install.ps1: Added-Previewswitch parameter. When passed, queries/releasesAPI and filters for pre-release versions.Both scripts exit gracefully with a clear error message if no pre-release version is available.
Documentation
docs/content/en/docs/Install/_index.mdwith preview install examplesREADME.mdwith preview install examplesjumpstart_drops/azqr-tutorial/_index.mdwith preview install examplesUsage
Linux:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/azure/azqr/main/scripts/install.sh)" -- --previewWindows (PowerShell):
Backward Compatibility
Default behavior (no flag) is unchanged — scripts still install the latest stable release.