Skip to content

Commit

Permalink
Add support for gh issues to release.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjw296 committed Dec 28, 2022
1 parent c4dd650 commit 172a36c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions release.py
Expand Up @@ -27,8 +27,10 @@ def text_from_news():

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

return '\n'.join(text)
Expand Down

0 comments on commit 172a36c

Please sign in to comment.