From 94440669c8aa23f40ace72015c7226fac3f4b663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Mon, 12 Sep 2022 16:40:01 +0200 Subject: [PATCH] Make app react only to pull_request events --- index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 72a4fe1..fe5d764 100644 --- a/index.ts +++ b/index.ts @@ -1,7 +1,9 @@ import { ApplicationFunction } from 'probot'; const appFn: ApplicationFunction = (app) => { - app.onAny((context) => console.log(JSON.stringify(context, null, 2))); + app.on('pull_request', (context) => + console.log(JSON.stringify(context, null, 2)) + ); }; export = appFn;