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
12 changes: 4 additions & 8 deletions dev/releases/release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,13 @@ def package_updates(relnotes_file: TextIO, new_gap_version: str) -> None:
updated = new_json.keys() & old_json.keys()
updated = [p for p in updated if old_json[p]["Version"] != new_json[p]["Version"]]
if len(updated) > 0:
relnotes_file.write(
f"""
relnotes_file.write(f"""
#### Updated packages redistributed with GAP

The GAP {new_gap_version} distribution contains {len(new_json)} packages, of which {len(updated)} have been
updated since GAP {old_gap_version}. The full list of updated packages is given below:

""".lstrip()
)
""".lstrip())
for p in sorted(updated):
old = old_json[p]
new = new_json[p]
Expand Down Expand Up @@ -263,8 +261,7 @@ def changes_overview(
pr for pr in prs if has_label(pr, "release notes: use title")
]
# Write out all PRs with 'use title'
relnotes_file.write(
f"""# GAP - history of changes
relnotes_file.write(f"""# GAP - history of changes

## GAP {new_version} ({month} {year})

Expand All @@ -273,8 +270,7 @@ def changes_overview(
were made, but we tried to only list those changes which we think might
affect some users directly.

"""
)
""")

for priorityobject in prioritylist:
matches = [
Expand Down
Loading