Skip to content

feat: add --preview flag to install scripts for pre-release versions#889

Merged
cmendible merged 1 commit into
mainfrom
cmendible/add-preview-install-flag
Jun 10, 2026
Merged

feat: add --preview flag to install scripts for pre-release versions#889
cmendible merged 1 commit into
mainfrom
cmendible/add-preview-install-flag

Conversation

@cmendible

Copy link
Copy Markdown
Member

Closes #888

Summary

Add support for installing preview (pre-release) versions of azqr via the install scripts.

Changes

Scripts

  • scripts/install.sh: Added --preview and --help flags. When --preview is passed, queries /releases API and filters for prerelease == true with jq.
  • scripts/install.ps1: Added -Preview switch parameter. When passed, queries /releases API and filters for pre-release versions.

Both scripts exit gracefully with a clear error message if no pre-release version is available.

Documentation

  • Updated docs/content/en/docs/Install/_index.md with preview install examples
  • Updated README.md with preview install examples
  • Updated jumpstart_drops/azqr-tutorial/_index.md with preview install examples

Usage

Linux:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/azure/azqr/main/scripts/install.sh)" -- --preview

Windows (PowerShell):

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "& { $(iwr -useb 'https://raw.githubusercontent.com/azure/azqr/main/scripts/install.ps1') } -Preview"

Backward Compatibility

Default behavior (no flag) is unchanged — scripts still install the latest stable release.

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-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 20.21%. Comparing base (3eec39a) to head (12101fc).

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           
Flag Coverage Δ
unittests 20.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cmendible cmendible left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cmendible cmendible merged commit 00adf41 into main Jun 10, 2026
12 checks passed
@cmendible cmendible deleted the cmendible/add-preview-install-flag branch June 10, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --preview flag to install scripts for pre-release versions

2 participants