Skip to content

Commit 4e94f8b

Browse files
mikeharderjnlycklama
authored andcommitted
[TypeSpec Validation] Add "specification/common-types" to triggers (#25945)
1 parent ebd4681 commit 4e94f8b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

eng/pipelines/typespec-validation-all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pr:
1717
- package.json
1818
- tsconfig.json
1919
- eng
20+
- specification/common-types
2021

2122
jobs:
2223
- job: Validate_All_Specs

eng/scripts/Get-TypeSpec-Folders.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ else {
3131

3232
$engFiles = $changedFiles | Where-Object {if ($_) { $_.StartsWith('eng') }}
3333

34+
$commonTypesFiles = $changedFiles | Where-Object {if ($_) { $_.StartsWith('specification/common-types') }}
35+
3436
$rootFilesImpactingTypeSpec = @(
3537
".gitattributes",
3638
".prettierrc.json",
@@ -40,7 +42,7 @@ else {
4042
)
4143
$repoRootFiles = $changedFiles | Where-Object {$_ -in $rootFilesImpactingTypeSpec}
4244

43-
if (($Env:BUILD_REPOSITORY_NAME -eq 'azure/azure-rest-api-specs') -and ($engFiles -or $repoRootFiles)) {
45+
if (($Env:BUILD_REPOSITORY_NAME -eq 'azure/azure-rest-api-specs') -and ($engFiles -or $commonTypesFiles -or $repoRootFiles)) {
4446
$changedFiles = $allChangedFiles
4547
}
4648
else {

0 commit comments

Comments
 (0)