@@ -10,8 +10,9 @@ commit, this script:
1010 'auto-release' label.
1111 2. Builds a PR diff object (New-GitHubPullRequestDiffObject) from the PR's changed files and reuses
1212 the repo's existing package-detection logic (Get-PrPkgProperties) to identify the changed packages
13- (honoring triggering paths, deleted files and service-level changes), excluding
14- validation-only packages. Get-PrPkgProperties delegates to each repo's own
13+ (honoring triggering paths and deleted files while ignoring only files directly under
14+ sdk/<service>/, not files in package subdirectories), excluding validation-only packages.
15+ Get-PrPkgProperties delegates to each repo's own
1516 Get-AllPackageInfoFromRepo (language-settings.ps1), so this script works for any language repo.
1617 3. Intersects those packages with this pipeline's declared artifacts and emits Azure DevOps output
1718 variables consumed by the release stages. Both consumption styles are emitted:
@@ -135,7 +136,10 @@ function Invoke-AutoReleaseResolution {
135136 # package-detection logic to identify the changed packages.
136137 Write-Host " Fetching changed files for PR $prLink ..."
137138 $files = @ (Get-GitHubPullRequestFiles - RepoId $RepoId - PullRequestNumber $pr.number - AuthToken $AuthToken )
138- $diff = New-GitHubPullRequestDiffObject - PullRequestNumber $pr.number - PullRequestFiles $files
139+ $diff = New-GitHubPullRequestDiffObject `
140+ - PullRequestNumber $pr.number `
141+ - PullRequestFiles $files `
142+ - ExcludeServiceRootFiles
139143 Write-Host " PR $prLink changed $ ( $diff.ChangedFiles.Count ) file(s) and deleted $ ( $diff.DeletedFiles.Count ) file(s)."
140144
141145 $diffPath = Join-Path ([System.IO.Path ]::GetTempPath()) (" autorelease-diff-" + [System.Guid ]::NewGuid().ToString(' N' ) + " .json" )
0 commit comments