File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
tools/cli/internal/changelog/outputfilter Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments