diff --git a/index.ts b/index.ts index fe5d764..cea7b8a 100644 --- a/index.ts +++ b/index.ts @@ -1,9 +1,9 @@ import { ApplicationFunction } from 'probot'; const appFn: ApplicationFunction = (app) => { - app.on('pull_request', (context) => - console.log(JSON.stringify(context, null, 2)) - ); + app.on('pull_request', (context) => { + console.log(JSON.stringify(context.payload, null, 2)); + }); }; export = appFn;