diff options
author | Konstantin Kharlamov <Hi-Angel@yandex.ru> | 2022-12-08 22:53:51 +0300 |
---|---|---|
committer | Konstantin Kharlamov <Hi-Angel@yandex.ru> | 2022-12-30 03:39:38 +0300 |
commit | 334123a908cfac282297ba5240aecac79e9babd2 (patch) | |
tree | 7e1d196570ee1959644173e24236806f2613b6a7 /bin | |
parent | bd807eecd16eb308e121ff6d51210edee8635083 (diff) | |
download | mesa-334123a908cfac282297ba5240aecac79e9babd2.tar.gz |
bin/gen_release_notes.py: do not fail on confidential features
A commit may refer to an issue marked as confidential. That will look
like a 404 page for outside users. One example of such commit is:
369c12e5be "anv: clear descriptorsets if AllocateDescriptorSets fails"
Let's handle that case.
Cc: mesa-stable
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20241>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gen_release_notes.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py index b323fc24046..889c0a43654 100755 --- a/bin/gen_release_notes.py +++ b/bin/gen_release_notes.py @@ -227,7 +227,12 @@ async def get_bug(session: aiohttp.ClientSession, bug_id: str) -> str: params = {'iids[]': bug_id} async with session.get(url, params=params) as response: content = await response.json() - return content[0]['title'] + if not content: + # issues marked as "confidential" look like "404" page for + # unauthorized users + return f'Confidential issue #{bug_id}' + else: + return content[0]['title'] async def get_shortlog(version: str) -> str: |