Skip to content

Commit 84319a5

Browse files
authored
fix: probot 12 compatibility (#23)
Related: probot/probot#1587
1 parent 4579cba commit 84319a5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

api/github/webhooks/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
const { createNodeMiddleware, createProbot } = require("probot");
22

33
const app = require("../../../app");
4-
const probot = createProbot({
5-
defaults: {
6-
webhookPath: "/api/github/webhooks",
7-
},
8-
});
4+
const probot = createProbot();
95

10-
module.exports = createNodeMiddleware(app, { probot });
6+
module.exports = createNodeMiddleware(app, { probot, webhooksPath: '/api/github/webhooks' });

0 commit comments

Comments
 (0)