Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/psrt_ghsa_bot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +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}!")
pull_requests = []
else:
capture_exception()
Expand All @@ -158,6 +159,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
Expand Down
Loading