Skip to content

Commit b4ad5c2

Browse files
merge instead of ovewrwrite when aggregating changelog items (#20030)
1 parent 8ac0e1a commit b4ad5c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llama-dev/llama_dev/release/changelog.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ def changelog(obj: dict, dry_run: bool) -> None:
124124
for pr_number in bar:
125125
try:
126126
prs, versions = _extract_pr_data(repo_root, all_packages, pr_number)
127-
package_prs |= prs
127+
# Merge PR lists for each package instead of overwriting
128+
for pkg_name, pr_list in prs.items():
129+
if pkg_name not in package_prs:
130+
package_prs[pkg_name] = []
131+
package_prs[pkg_name].extend(pr_list)
128132
package_versions |= versions
129133

130134
except Exception as e:

0 commit comments

Comments
 (0)