We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f263a04 commit c450eaeCopy full SHA for c450eae
gitops_server/workers/deployer/hooks.py
@@ -19,9 +19,8 @@ async def update_issue_from_deployment_url(
19
async with httpx.AsyncClient() as client:
20
headers = github.get_headers()
21
deployment_response = await client.get(deployment_url, headers=headers)
22
- sha = deployment_response.json()["sha"]
23
-
24
try:
+ sha = deployment_response.json().get("sha", "")
25
issues_response = await client.get(
26
f"https://api.github.com/search/issues?q={sha}+is:pr", headers=headers
27
)
0 commit comments