Skip to content

Commit 2eb900e

Browse files
committed
uplift(release): chore(ci): add issue links to github release notes
1 parent 8c48ab1 commit 2eb900e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

scripts/ci/render-notes.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ def render_notes(
8787
tag = note["tag"].lower().capitalize()
8888
if tag not in render_data["releases"][vers]["notes"]:
8989
render_data["releases"][vers]["notes"][tag] = []
90-
render_data["releases"][vers]["notes"][tag].append(
91-
note["note"].strip()
92-
)
90+
note_entry = {
91+
"text": note["note"].strip(),
92+
"issues": note.get("issues", []),
93+
}
94+
render_data["releases"][vers]["notes"][tag].append(note_entry)
9395
render_data["releases"][vers]["long_notes"].append(note["note"].strip())
9496
if "short_note" in note:
9597
tag = note["tag"].lower().capitalize()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% for tag, long_notes in notes.items() %}
22
{{ tag }}:
33
{%- for note in long_notes %}
4-
- {{ note }}
4+
- {{ note.text }}{% if note.issues %} ({% for issue in note.issues %}#{{ issue }}{% if not loop.last %}, {% endif %}{% endfor %}){% endif %}
55
{%- endfor %}
66

77
{% endfor %}

0 commit comments

Comments
 (0)