From 2330714ed7df05f7eff401f36d0b3277b75b938a Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 9 Sep 2026 20:59:32 +0100 Subject: [PATCH 1/2] Temporarily log 404s to debug gh-64 --- src/psrt_ghsa_bot/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/psrt_ghsa_bot/app.py b/src/psrt_ghsa_bot/app.py index 7e2e49b..47e7dac 100644 --- a/src/psrt_ghsa_bot/app.py +++ b/src/psrt_ghsa_bot/app.py @@ -138,6 +138,9 @@ def credit_if_uncredited(login: str, type: str) -> None: # If there are no pull requests the API # returns 404. Skip instead of erroring. if e.response.status_code == 404: + print( + f" ⚠️ Pull requests not found for {private_fork_owner}/{private_fork_repo}!" + ) pull_requests = [] else: capture_exception() @@ -158,6 +161,9 @@ def credit_if_uncredited(login: str, type: str) -> None: # If there are no pull request reviews the API # returns 404. Skip instead of erroring. if e.response.status_code == 404: + print( + f" ⚠️ Reviews not found for {private_fork_owner}/{private_fork_repo}#{pull_request['number']}!" + ) continue capture_exception() raise RuntimeError("Request to list pull requests reviews failed") from None From 61d8325c16fd005de4425050dd0969c0545d7c53 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 9 Sep 2026 21:01:40 +0100 Subject: [PATCH 2/2] Re-run pre-commtit --- src/psrt_ghsa_bot/app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/psrt_ghsa_bot/app.py b/src/psrt_ghsa_bot/app.py index 47e7dac..01febc4 100644 --- a/src/psrt_ghsa_bot/app.py +++ b/src/psrt_ghsa_bot/app.py @@ -138,9 +138,7 @@ def credit_if_uncredited(login: str, type: str) -> None: # If there are no pull requests the API # returns 404. Skip instead of erroring. if e.response.status_code == 404: - print( - f" ⚠️ Pull requests not found for {private_fork_owner}/{private_fork_repo}!" - ) + print(f" ⚠️ Pull requests not found for {private_fork_owner}/{private_fork_repo}!") pull_requests = [] else: capture_exception()