Skip to content

Commit a6b16dd

Browse files
authored
Fix the issue that the ChangeLog.md in root folder is changed (#21055)
1 parent e5098c3 commit a6b16dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/StaticAnalysis/FileChangeAnalyzer/Test-FileChange.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ $UpdatedChangeLogs = @{}
3030

3131
ForEach ($FilePath In ($FilesChanged | Where-Object { $_.EndsWith("ChangeLog.md") }))
3232
{
33+
If ($FilePath -eq "ChangeLog.md") # Skip for the ChangeLog.md at root folder
34+
{
35+
continue
36+
}
3337
$ModuleName = $FilePath.Split("/")[1]
3438
$UpdatedChangeLogs.Add($ModuleName, $FilePath)
3539
}

0 commit comments

Comments
 (0)