Skip to content

[rush] Fix version bump removing policy fields#5309

Merged
dmichon-msft merged 2 commits intomicrosoft:mainfrom
dmichon-msft:version-policy-exempt
Aug 20, 2025
Merged

[rush] Fix version bump removing policy fields#5309
dmichon-msft merged 2 commits intomicrosoft:mainfrom
dmichon-msft:version-policy-exempt

Conversation

@dmichon-msft
Copy link
Contributor

Summary

Fixes an issue where the fields dependencies, exemptFromRushChange and includeEmailInChangeFile were discarded from version-policies.json during rush version --bump or similar commands.

Details

The version bump logic asked for a fresh serialization of the data in the version policies, and the serializer was missing fields.

The revised logic has the version policy track the original JSON and modify it in place so that the version-policies.json file will only have the necessary changes.

How it was tested

Ran rush version --bump in the rushstack repository after adding exemptFromRushChange: true and includeEmailInChangeFile: true to the Rush version policy. Verified that in the old version these fields were discarded and in the new version they were preserved.

Impacted documentation

Documentation is now correct, since it was neither stated nor implied that fields would be discarded during version bump.

@dmichon-msft dmichon-msft merged commit 6e77793 into microsoft:main Aug 20, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Aug 20, 2025
@dmichon-msft dmichon-msft deleted the version-policy-exempt branch August 20, 2025 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

3 participants