File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 5
5
[string ]$FilesChanged
6
6
)
7
7
8
- if ([string ]::IsNullOrEmpty($FilesChanged ))
9
- {
10
- Write-Host " The list of files changed is empty; skipping check for change log entry"
11
- return
12
- }
13
-
14
8
$PathsToCheck = @ (
15
9
" src/Common" ,
16
10
" src/ResourceManager" ,
@@ -23,6 +17,13 @@ $PathStringsToIgnore = @(
23
17
)
24
18
25
19
$FilesChangedList = $FilesChanged -split ' ;'
20
+
21
+ if ([string ]::IsNullOrEmpty($FilesChanged ) -or ($FilesChangedList.Count -eq 300 ))
22
+ {
23
+ Write-Host " The list of files changed is empty or is past the 300 file limit; skipping check for change log entry"
24
+ return
25
+ }
26
+
26
27
$ChangeLogs = $FilesChangedList | where { $_ -like " *ChangeLog.md*" }
27
28
$UpdatedServicePaths = New-Object System.Collections.Generic.HashSet[string ]
28
29
foreach ($ChangeLog in $ChangeLogs )
You can’t perform that action at this time.
0 commit comments