From 8606ed452344a875eec389649ff69b4407ea26c0 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 20 Nov 2024 11:48:08 -0600 Subject: [PATCH] don't bail if response isn't ok --- pkgs/oizys/src/oizys/github.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/oizys/src/oizys/github.nim b/pkgs/oizys/src/oizys/github.nim index 471b59e..55854da 100644 --- a/pkgs/oizys/src/oizys/github.nim +++ b/pkgs/oizys/src/oizys/github.nim @@ -74,11 +74,14 @@ proc postGhApi(url: string, body: JsonNode) = "Authorization" : fmt"Bearer {ghToken}", "X-GitHub-Api-Version": "2022-11-28", }) + var response: Response try: - let response = client.post(url, body = $body) + response = client.post(url, body = $body) info fmt"Status: {response.code}" except: errorQuit "failed to get response code" + if response.code != Http204: + errorQuit "failed to post github api request" proc getInProgressRun( workflow: string,