Skip to content

[release/v7.5] Update metadata.json to update the Latest attribute with a better name#26826

Open
daxian-dbw wants to merge 1 commit intoPowerShell:release/v7.5from
daxian-dbw:backport/release/v7.5/26380-bd33c2d98
Open

[release/v7.5] Update metadata.json to update the Latest attribute with a better name#26826
daxian-dbw wants to merge 1 commit intoPowerShell:release/v7.5from
daxian-dbw:backport/release/v7.5/26380-bd33c2d98

Conversation

@daxian-dbw
Copy link
Member

Backport of #26380 to release/v7.5

Triggered by @daxian-dbw on behalf of @adityapatwardhan

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Updates release pipeline templates to use standardized 'PublishToChannels' property instead of 'Latest' in metadata.json. Required for proper release channel selection in LTS and Stable releases.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Validated through existing CI/CD pipeline tests. The metadata property rename from 'Latest' to 'PublishToChannels' is referenced in pipeline templates and will be exercised during release pipeline execution.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

This is a metadata property rename to standardize naming conventions. The change is isolated to release pipeline templates and metadata configuration files. No runtime code changes.

Merge Conflicts

Resolved conflicts in .pipelines/templates/release-upload-buildinfo.yml and tools/metadata.json due to version-specific differences in the release branch.

@daxian-dbw daxian-dbw requested a review from a team as a code owner February 14, 2026 01:10
Copilot AI review requested due to automatic review settings February 14, 2026 01:10
@daxian-dbw daxian-dbw added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Feb 14, 2026
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 pull request backports changes from #26380 to the release/v7.5 branch, standardizing release metadata property naming by renaming "Latest" to "PublishToChannels" in metadata.json and all pipeline templates that reference it. This change corrects a previous typo in the LTSRelease object ("PulishToChannels") and ensures consistent naming conventions across the release pipeline infrastructure.

Changes:

  • Updated metadata.json to rename "Latest" property to "PublishToChannels" for both LTSRelease and StableRelease objects
  • Updated pipeline templates (channelSelection.yml, release-prep-for-ev2.yml, release-upload-buildinfo.yml) to reference the new PublishToChannels property
  • Additional environmental improvements including DOTNET_NOLOGO variable update and environment variable output formatting

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
tools/metadata.json Renamed "Latest" property to "PublishToChannels" in LTSRelease and StableRelease objects; updated version tags for v7.5.4 release
.pipelines/templates/release-upload-buildinfo.yml Updated references from .Latest to .PublishToChannels; added new variables for release metadata; improved environment variable display
.pipelines/templates/release-prep-for-ev2.yml Updated LTSRelease.Latest reference to LTSRelease.PublishToChannels; removed trailing whitespace
.pipelines/templates/channelSelection.yml Updated both LTSRelease.Latest and StableRelease.Latest to use PublishToChannels; reorganized variable definitions for better clarity

$metadata = Get-Content -LiteralPath "$toolsDirectory/metadata.json" -ErrorAction Stop | ConvertFrom-Json
$stableReleaseTag = $metadata.StableReleaseTag -Replace 'v',''

$currentReleaseTag = $buildInfo.ReleaseTag -Replace 'v',''
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

This line references $buildInfo before it's defined. The $buildInfo variable is not created until line 69, so this line will fail at runtime with an error about using an undefined variable. This line appears to be a duplicate of line 71 and should be removed.

Suggested change
$currentReleaseTag = $buildInfo.ReleaseTag -Replace 'v',''

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

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants