gen_release_notes: avoid crashing when none of the commits mention closing an issue

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20459>
This commit is contained in:
Eric Engestrom
2022-12-30 00:14:34 +00:00
committed by Marge Bot
parent b114debffb
commit 4a2635153c

View File

@@ -217,7 +217,10 @@ async def parse_issues(commits: str) -> typing.List[str]:
async def gather_bugs(version: str) -> typing.List[str]:
commits = await gather_commits(version)
issues = await parse_issues(commits)
if commits:
issues = await parse_issues(commits)
else:
issues = []
loop = asyncio.get_event_loop()
async with aiohttp.ClientSession(loop=loop) as session: