Skip to content

Commit 96608ac

Browse files
committed
Fix changelog checkeing script to be able to handle a change where more
than 300 files change
1 parent 036d75f commit 96608ac

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tools/CheckChangeLog.ps1

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ Param
55
[string]$FilesChanged
66
)
77

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-
148
$PathsToCheck = @(
159
"src/Common",
1610
"src/ResourceManager",
@@ -23,6 +17,13 @@ $PathStringsToIgnore = @(
2317
)
2418

2519
$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+
2627
$ChangeLogs = $FilesChangedList | where { $_ -like "*ChangeLog.md*" }
2728
$UpdatedServicePaths = New-Object System.Collections.Generic.HashSet[string]
2829
foreach ($ChangeLog in $ChangeLogs)

0 commit comments

Comments
 (0)