From 06fe71ddf90d31039616b27401a748f69e1fe4d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Wed, 31 Jan 2024 16:56:52 +0100 Subject: [PATCH] fix: do not fail the full backport if assigning reviewers failed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- src/backport.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backport.ts b/src/backport.ts index df534392..50a5c327 100644 --- a/src/backport.ts +++ b/src/backport.ts @@ -74,7 +74,7 @@ export const backport = (task: Task) => new Promise((resolve, reject) => { await requestReviewers(octokit, task, prNumber, [task.author]) info(task, `Requested reviews from ${[...reviewers, task.author].join(', ')}`) } catch (e) { - throw new Error(`Failed to request reviews: ${e.message}`) + error(task, `Failed to request reviews: ${e.message}`) } } catch (e) { throw new Error(`Failed to create pull request: ${e.message}`)