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;