Skip to content

Conversation

@rainersigwald
Copy link
Member

Add a script to automate creating commits like 6e61e96.

Co-authored-by: GitHub Copilot <175728472+github-copilot[bot]@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 29, 2026 15:34
Copy link
Contributor

Copilot AI left a 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.ps1 to automate adding DotNetFinalVersionKind and changing PreReleaseVersionLabel during release stabilization
  • Updates documentation/release.md to reference the new automation script
  • Updates documentation/release-checklist.md to 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

$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."
Copy link

Copilot AI Jan 29, 2026

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."

Suggested change
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."

Copilot uses AI. Check for mistakes.
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.

1 participant