From 9a5807905936dcc71a3b9ce54932c0ef1d45640b Mon Sep 17 00:00:00 2001 From: Jochum van der Ploeg Date: Thu, 16 Nov 2023 14:42:23 +0100 Subject: [PATCH 1/2] fix: prevent errors from stopping the processes --- generate-changelog.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generate-changelog.ts b/generate-changelog.ts index 2533e5e..adb8fa5 100644 --- a/generate-changelog.ts +++ b/generate-changelog.ts @@ -73,7 +73,8 @@ async function getMorePullRequests(org: string, repo: Repo, page: number = 1): P }); if (response.status != 200) { - throw new Error(`[ERROR] GET ${url} (${response.status})`); + console.error(`[ERROR] GET ${url} (${response.status})`); + return pullRequests; } const body = (await response.json()) as Array; From 5fa58e03c60adaefc050062d78fce84633ceee14 Mon Sep 17 00:00:00 2001 From: Jochum van der Ploeg Date: Wed, 22 Nov 2023 13:32:23 +0100 Subject: [PATCH 2/2] fix: prevent errors from stopping the processes --- generate-changelog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-changelog.ts b/generate-changelog.ts index adb8fa5..2477766 100644 --- a/generate-changelog.ts +++ b/generate-changelog.ts @@ -73,7 +73,7 @@ async function getMorePullRequests(org: string, repo: Repo, page: number = 1): P }); if (response.status != 200) { - console.error(`[ERROR] GET ${url} (${response.status})`); + console.error(`[ERROR] GET ${url} (${response.status}): ${await response.json()}`); return pullRequests; }