Skip to content

Commit ae67e58

Browse files
authored
Add trailing slash exclude paths (Azure#39825)
1 parent 979e784 commit ae67e58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eng/pipelines/pullrequest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pr:
1414
# any excludes here. The reason being is that we can't access
1515
# pr->paths->exclude
1616
exclude:
17-
- sdk/cosmos
17+
- sdk/cosmos/
1818

1919
parameters:
2020
- name: Service
@@ -31,4 +31,4 @@ extends:
3131
# See pr->paths->exclude comment above. Anything added/removed there
3232
# needs to be added/removed here.
3333
ExcludePaths:
34-
- sdk/cosmos
34+
- sdk/cosmos/

eng/scripts/Language-Settings.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function Get-python-AdditionalValidationPackagesFromPackageSet {
5151
# The targetedFiles needs to filter out anything in the ExcludePaths
5252
# otherwise it'll end up processing things below that it shouldn't be.
5353
foreach ($excludePath in $diffObj.ExcludePaths) {
54-
$targetedFiles = $targetedFiles | Where-Object { -not $_.StartsWith($excludePath.TrimEnd("/") + "/") }
54+
$targetedFiles = $targetedFiles | Where-Object { -not $_.StartsWith($excludePath) }
5555
}
5656

5757
if ($targetedFiles) {

0 commit comments

Comments
 (0)