Skip to content

Commit

Permalink
fix: revert to Probot v12 again (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored Feb 12, 2024
1 parent cdba9f7 commit 0f26164
Show file tree
Hide file tree
Showing 4 changed files with 1,033 additions and 487 deletions.
8 changes: 3 additions & 5 deletions api/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
// @ts-check

const { createNodeMiddleware, createProbot } = require("probot");

const app = require("../");
const probot = createProbot();
const middleware = createNodeMiddleware(app, { probot, webhooksPath: "/" });
const middleware = createNodeMiddleware(app, { probot });

/**
* Redirect `GET /` to `/stats`, pass `POST /` to Probot's middleware
*
* @param {import('@vercel/node').VercelRequest} request
* @param {import('@vercel/node').VercelResponse} response
* @param {import('@vercel/node').NowRequest} request
* @param {import('@vercel/node').NowResponse} response
*/
module.exports = (request, response) => {
if (request.method !== "POST") {
Expand Down
Loading

0 comments on commit 0f26164

Please sign in to comment.