fix(ci): repair agent observability dispatch and runner cleanup (#9204)

Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
Weny Xu
2026-09-17 06:10:20 +00:00
committed by GitHub
parent 8990ac281c
commit 604c88e7e2
3 changed files with 78 additions and 29 deletions
@@ -238,6 +238,8 @@ def github_api(token: str, method: str, path: str, body: dict | None = None) ->
)
try:
with urllib.request.urlopen(request, timeout=30) as response:
if response.status == 204:
return {}
return json.loads(response.read().decode("utf-8"))
except urllib.error.HTTPError as error:
# GitHub's error body says exactly why (e.g. "Must have admin rights to