-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add Stabilize-Release.ps1 script for release process #13146
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: GitHub Copilot <175728472+github-copilot[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds automation for the MSBuild release stabilization process by introducing a PowerShell script that modifies versioning properties in eng/Versions.props. The script replaces a manual process previously documented in the release checklist.
Changes:
- Adds
scripts/Stabilize-Release.ps1to automate addingDotNetFinalVersionKindand changingPreReleaseVersionLabelduring release stabilization - Updates
documentation/release.mdto reference the new automation script - Updates
documentation/release-checklist.mdto instruct maintainers to use the script instead of manual editing
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| scripts/Stabilize-Release.ps1 | New PowerShell script that automates the release stabilization process by modifying eng/Versions.props |
| documentation/release.md | Adds documentation about the new Stabilize-Release.ps1 script |
| documentation/release-checklist.md | Updates final branding checklist step to use the new automation script |
scripts/Stabilize-Release.ps1
Outdated
| $versionsPropsPath = Join-Path $repoRoot 'eng\Versions.props' | ||
|
|
||
| if (-not (Test-Path $versionsPropsPath)) { | ||
| Write-Error "Could not find eng/Versions.props. Please run this script from the repository root or scripts directory." |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message says "Please run this script from the repository root or scripts directory" but the script only supports being run from the repository root or scripts directory. The current logic finds the repo root correctly regardless of where it's run from (as long as the file exists), so the error message could be more accurate, such as "Could not find eng/Versions.props at expected location. Repository structure may have changed."
| Write-Error "Could not find eng/Versions.props. Please run this script from the repository root or scripts directory." | |
| Write-Error "Could not find eng/Versions.props at expected location: '$versionsPropsPath'. Repository structure may have changed." |
Co-authored-by: Copilot <[email protected]>
Add a script to automate creating commits like 6e61e96.