Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tools/cli/internal/changelog/outputfilter/hide.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ func hideByExemptions(entries []*OasDiffEntry, exemptions []breakingchanges.Exem
hiddenEntries := 0
for _, entry := range entries {
if entry.HideFromChangelog {
hiddenEntries++
continue
}

for _, exemption := range exemptionsMarkedHidden {
// If the path is not empty and the path is not in the exemption, skip
if entry.Path != "" && !strings.Contains(exemption.BreakingChangeDescription, entry.Path) {
Expand All @@ -79,8 +81,10 @@ func hideByExemptions(entries []*OasDiffEntry, exemptions []breakingchanges.Exem
continue
}

// Mark entry as hidden and break the exemption loop.
entry.HideFromChangelog = true
hiddenEntries++
break
}
}

Expand Down
Loading