Skip to content

Commit 9cd43f6

Browse files
committed
Add more logging for change log check
1 parent 7c79e26 commit 9cd43f6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tools/CheckChangeLog.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ $ChangeLogs = $FilesChangedList | where { $_ -like "*ChangeLog.md*" }
3131
$UpdatedServicePaths = New-Object System.Collections.Generic.HashSet[string]
3232
foreach ($ChangeLog in $ChangeLogs)
3333
{
34-
if ($ChangeLog -like "src/ServiceManagement*")
34+
if ($ChangeLog -eq "ChangeLog.md")
35+
{
36+
continue
37+
}
38+
elseif ($ChangeLog -like "src/ServiceManagement*")
3539
{
3640
$UpdatedServicePaths.Add("src/ServiceManagement") | Out-Null
3741
}
@@ -48,6 +52,10 @@ foreach ($ChangeLog in $ChangeLogs)
4852
}
4953
}
5054

55+
$message = "The following services were found to have a change log update:`n"
56+
$UpdatedServicePaths | % { $message += "`t- $_`n" }
57+
Write-Host "$message`n"
58+
5159
$FlaggedFiles = @()
5260
foreach ($File in $FilesChangedList)
5361
{

0 commit comments

Comments
 (0)