ci: Skip failure when Github API doesn't work (#37802)

This commit is contained in:
Ankush Menat 2026-03-05 17:01:59 +05:30 committed by GitHub
parent 115d3cead0
commit f19cbee766
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ def contains_documentation_link(body: str) -> bool:
def check_pull_request(number: str) -> "tuple[int, str]":
response = requests.get(f"https://api.github.com/repos/frappe/frappe/pulls/{number}")
if not response.ok:
return 1, "Pull Request Not Found! ⚠️"
return 0, "Pull Request Not Found! ⚠️"
payload = response.json()
title = (payload.get("title") or "").lower().strip()