Skip to content

Commit

Permalink
Handle PR changes in the root of the repository (#33090)
Browse files Browse the repository at this point in the history
Similar changes are being made to Java, Net and Python. 

When splitting on the directory separator for a file in the repo root,
$pathComponents.Length -eq 1.
  • Loading branch information
JimSuplizio authored Feb 18, 2025
1 parent eebd523 commit 996e392
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ function Get-javascript-AdditionalValidationPackagesFromPackageSet {
$changedServices += $pathComponents[1]
}

# handle any changes under sdk/<file>.<extension>
if ($pathComponents.Length -eq 2 -and $pathComponents[0] -eq "sdk") {
# handle any changes under sdk/<file>.<extension> or in the root of
# the repository
if (($pathComponents.Length -eq 2 -and $pathComponents[0] -eq "sdk") -or
($pathComponents.Length -eq 1)) {
$changedServices += "template"
}
}
Expand Down

0 comments on commit 996e392

Please sign in to comment.