Skip to content

Commit 743834a

Browse files
authored
ci(release): fix mk_releasenotes.py script (#2530)
subsections weren't filtered properly causing some items to go unrendered
1 parent 47cee3d commit 743834a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/ReleaseNotes/mk_releasenotes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@
5252
items = content.get("items", [])
5353
# if patch, only include fixes
5454
if patch:
55+
items = [item for item in items if item["section"] == "fixes"]
5556
sections = {k: v for k, v in sections.items() if k == "fixes"}
56-
items = [item for item in items if item.get("section") == "fixes"]
57+
subsections = {
58+
k: subsections[k] for k in [item["subsection"] for item in items]
59+
}
5760
# make sure each item has a subsection entry even if empty
5861
for item in items:
5962
if not item.get("subsection"):

0 commit comments

Comments
 (0)