Skip to content

Update metadata.json to update the Latest attribute with a better name#26380

Merged
adityapatwardhan merged 3 commits intoPowerShell:masterfrom
adityapatwardhan:UpdateLTSMetadata
Jan 14, 2026
Merged

Update metadata.json to update the Latest attribute with a better name#26380
adityapatwardhan merged 3 commits intoPowerShell:masterfrom
adityapatwardhan:UpdateLTSMetadata

Conversation

@adityapatwardhan
Copy link
Member

PR Summary

This pull request updates the way release metadata is handled in pipeline templates and the metadata.json file, standardizing the use of the PublishToChannels property for both LTS and Stable releases. The most important changes are grouped below.

Metadata property standardization:

  • Updated the LTSRelease and StableRelease objects in tools/metadata.json to replace the Latest property with PublishToChannels, correcting a previous typo in LTSRelease ("PulishToChannels" → "PublishToChannels").

Pipeline template updates:

  • Modified references in .pipelines/templates/channelSelection.yml, .pipelines/templates/release-prep-for-ev2.yml, and .pipelines/templates/release-upload-buildinfo.yml to use the new PublishToChannels property from the release metadata instead of the old Latest property for both LTS and Stable releases. [1] [2] [3]

PR Context

PR Checklist

Copilot AI review requested due to automatic review settings November 4, 2025 20:46
@adityapatwardhan adityapatwardhan requested review from a team and jshigetomi as code owners November 4, 2025 20:46
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 renames the Latest property to PublishToChannels in the release metadata configuration and updates all pipeline templates that reference this property. The change improves clarity about the property's purpose.

  • Renamed Latest property to PublishToChannels in metadata.json for both LTS and Stable releases
  • Updated all pipeline template references from .Latest to .PublishToChannels
  • Removed trailing whitespace in several YAML files

Reviewed Changes

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

File Description
tools/metadata.json Renamed property from Latest to PublishToChannels for both release types
.pipelines/templates/release-upload-buildinfo.yml Updated to access .PublishToChannels instead of .Latest for both releases
.pipelines/templates/release-prep-for-ev2.yml Updated LTS release reference to use .PublishToChannels and removed trailing whitespace
.pipelines/templates/channelSelection.yml Updated both LTS and Stable release references to use .PublishToChannels

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@adityapatwardhan adityapatwardhan added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Nov 4, 2025
@adityapatwardhan adityapatwardhan enabled auto-merge (squash) November 4, 2025 22:50
@microsoft-github-policy-service
Copy link
Contributor

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BackPort-7.4.x-Consider Backport-7.5.x-Migrated Backport-7.6.x-Migrated CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log Review - Needed The PR is being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants