ci: Skip failure when Github API doesn't work (#37802)
This commit is contained in:
parent
115d3cead0
commit
f19cbee766
1 changed files with 1 additions and 1 deletions
2
.github/helper/documentation.py
vendored
2
.github/helper/documentation.py
vendored
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue