From bf7836b3788d8b111d481be0c7d3a0323a5733e0 Mon Sep 17 00:00:00 2001 From: Mathew Heard Date: Sat, 30 Oct 2021 17:33:17 +1100 Subject: [PATCH] make it work with TS 4.4 Co-authored-by: Tim Gymnich --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index b24769e5..b1f0ee18 100644 --- a/src/main.ts +++ b/src/main.ts @@ -48,7 +48,7 @@ async function run() { if(autoMerge) { await octokit.pulls.merge({ owner: context.repo.owner, repo, pull_number: pr.data.number, merge_method: mergeMethod }); } - } catch (error) { + } catch (error: any) { if (error.request.request.retryCount) { console.log( `request failed after ${error.request.request.retryCount} retries with a delay of ${error.request.request.retryAfter}`