From 10ccbc2f0fd9baac2995ddc8a09302a8921a2b90 Mon Sep 17 00:00:00 2001 From: Muunatic Date: Wed, 29 Nov 2023 20:37:39 +0700 Subject: [PATCH] fix: add missing parentheses to iife --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index 8d6dada..6dc7a0c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,6 +20,7 @@ const octokit = new Octokit({ }); module.exports = (app: Probot) => { + app.on("push", async (context): Promise => { await new Push(context).push(); }); @@ -100,11 +101,14 @@ module.exports = (app: Probot) => { return; } }); + }; setInterval(() => { (async () => { await new PRsStale().checkStale(); + })().catch((err: Error) => { + console.error(err); }); }, 3600000);