Skip to content

Commit 021e316

Browse files
authored
chore: Update hiddenEntries counter (#280)
1 parent e169b82 commit 021e316

File tree

1 file changed

+4
-0
lines changed
  • tools/cli/internal/changelog/outputfilter

1 file changed

+4
-0
lines changed

tools/cli/internal/changelog/outputfilter/hide.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ func hideByExemptions(entries []*OasDiffEntry, exemptions []breakingchanges.Exem
6060
hiddenEntries := 0
6161
for _, entry := range entries {
6262
if entry.HideFromChangelog {
63+
hiddenEntries++
6364
continue
6465
}
66+
6567
for _, exemption := range exemptionsMarkedHidden {
6668
// If the path is not empty and the path is not in the exemption, skip
6769
if entry.Path != "" && !strings.Contains(exemption.BreakingChangeDescription, entry.Path) {
@@ -79,8 +81,10 @@ func hideByExemptions(entries []*OasDiffEntry, exemptions []breakingchanges.Exem
7981
continue
8082
}
8183

84+
// Mark entry as hidden and break the exemption loop.
8285
entry.HideFromChangelog = true
8386
hiddenEntries++
87+
break
8488
}
8589
}
8690

0 commit comments

Comments
 (0)