Make app react only to pull_request events
This commit is contained in:
4
index.ts
4
index.ts
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user