Skip to content

Commit

Permalink
fix: probot 12 compatibility (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronDewes authored Aug 31, 2021
1 parent 4579cba commit 84319a5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions api/github/webhooks/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
const { createNodeMiddleware, createProbot } = require("probot");

const app = require("../../../app");
const probot = createProbot({
defaults: {
webhookPath: "/api/github/webhooks",
},
});
const probot = createProbot();

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

1 comment on commit 84319a5

@vercel
Copy link

@vercel vercel bot commented on 84319a5 Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.