diff options
author | Dylan Baker <[email protected]> | 2019-10-09 10:29:41 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-10-28 08:31:30 -0700 |
commit | 701457466c77a1da80beb4d2caa2e25c1277523f (patch) | |
tree | 34073340f4708961f6ed6bad0471417e924e0cd6 | |
parent | 58a37997a3fb9ea9e7407b661b0ffe483baadc2f (diff) |
bin/gen_release_notes.py: strip '#' from gitlab bugs
If they use the `Fixes: #1` form.
Fixes: 86079447da1e00d49db0cbff9a102eb4e71e8702
("scripts: Add a gen_release_notes.py script")
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Juan A. Suarez <[email protected]>
(cherry picked from commit df3d4ad82da41c47f6adb2ec4309e873a8f7fd33)
-rwxr-xr-x | bin/gen_release_notes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py index 38b384fe362..71860e108e0 100755 --- a/bin/gen_release_notes.py +++ b/bin/gen_release_notes.py @@ -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: |