bin/gen_release_notes.py: strip '#' from gitlab bugs
authorDylan Baker <dylan@pnwbakers.com>
Wed, 9 Oct 2019 17:29:41 +0000 (10:29 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 25 Oct 2019 22:46:00 +0000 (15:46 -0700)
If they use the `Fixes: #1` form.

Fixes: 86079447da1e00d49db0cbff9a102eb4e71e8702
       ("scripts: Add a gen_release_notes.py script")
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
bin/gen_release_notes.py

index 17405530efbe2c4e4010e4520ddf9f49f6e47adc..b0d4c507252f999bbe4866008be944460a3b4dd5 100755 (executable)
@@ -149,7 +149,7 @@ async def gather_bugs(version: str) -> typing.List[str]:
             # This means we have a bug in the form "Closes: https://..."
             issues.append(os.path.basename(urllib.parse.urlparse(bug).path))
         else:
-            issues.append(bug)
+            issues.append(bug.lstrip('#'))
 
     loop = asyncio.get_event_loop()
     async with aiohttp.ClientSession(loop=loop) as session: