Make app react only to pull_request events

This commit is contained in:
Maciej Pędzich 2022-09-12 16:40:01 +02:00
parent d979c26a8b
commit 94440669c8

View File

@ -1,7 +1,9 @@
import { ApplicationFunction } from 'probot'; import { ApplicationFunction } from 'probot';
const appFn: ApplicationFunction = (app) => { 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; export = appFn;