You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eng/common/scripts/ChangeLog-Operations.ps1
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,21 @@ function Confirm-ChangeLogEntry {
175
175
LogError "Entry has no content. Please ensure to provide some content of what changed in this version."
176
176
return$false
177
177
}
178
+
179
+
$emptySections=@()
180
+
foreach ($keyin$changeLogEntry.Sections.Keys)
181
+
{
182
+
$sectionContent=$changeLogEntry.Sections[$key]
183
+
if ([System.String]::IsNullOrWhiteSpace(($sectionContent|Out-String)))
184
+
{
185
+
$emptySections+=$key
186
+
}
187
+
}
188
+
if ($emptySections.Count-gt0)
189
+
{
190
+
LogError "The changelog entry has the following sections with no content ($($emptySections-join', ')). Please ensure to either remove the empty sections or add content to the section."
0 commit comments