Skip to content

Commit 172a36c

Browse files
committed
Add support for gh issues to release.py.
1 parent c4dd650 commit 172a36c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

release.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ def text_from_news():
2727

2828
text = []
2929
for metadata, body in blurbs:
30-
bpo = metadata['bpo']
31-
body = f"- Issue #{bpo}: " + body
30+
bpo = metadata.get('bpo')
31+
gh = metadata.get('gh-issue')
32+
issue = f'bpo-{bpo}' if bpo else f'gh-{gh}'
33+
body = f"- {issue}: " + body
3234
text.append(blurb_module.textwrap_body(body, subsequent_indent=' '))
3335

3436
return '\n'.join(text)

0 commit comments

Comments
 (0)