Skip to content

Commit c450eae

Browse files
committed
feat: Continue even if sha is not found
1 parent f263a04 commit c450eae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gitops_server/workers/deployer/hooks.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ async def update_issue_from_deployment_url(
1919
async with httpx.AsyncClient() as client:
2020
headers = github.get_headers()
2121
deployment_response = await client.get(deployment_url, headers=headers)
22-
sha = deployment_response.json()["sha"]
23-
2422
try:
23+
sha = deployment_response.json().get("sha", "")
2524
issues_response = await client.get(
2625
f"https://api.github.com/search/issues?q={sha}+is:pr", headers=headers
2726
)

0 commit comments

Comments
 (0)