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);