Skip to content

Conversation

@tylerbutler
Copy link
Member

@tylerbutler tylerbutler commented Apr 2, 2025

The root package.json was not properly accounted for in the policy checker. This change adjusts the conditions to correctly handle the case.

Fixes AB#8640

Copilot AI review requested due to automatic review settings April 2, 2025 00:07
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 fixes the policy check for handling the root package.json by adjusting how the repository.directory field is validated.

  • Updates the condition for root package validation to check for the existence of repository.directory.
  • Refactors the non-root package check to only compare repository.directory when it is defined.

@github-actions github-actions bot added base: main PRs targeted against main branch area: build Build related issues labels Apr 2, 2025
@tylerbutler tylerbutler requested a review from a team April 2, 2025 00:13
@tylerbutler tylerbutler merged commit 4097057 into microsoft:main Apr 2, 2025
28 checks passed
@tylerbutler tylerbutler deleted the bt-policy-fix branch April 2, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build related issues base: main PRs targeted against main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants