Skip to content

Commit

Permalink
fix: bump to latest probot again (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored Feb 10, 2024
1 parent cac2308 commit cdba9f7
Show file tree
Hide file tree
Showing 4 changed files with 488 additions and 1,034 deletions.
8 changes: 5 additions & 3 deletions api/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// @ts-check

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

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

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

0 comments on commit cdba9f7

Please sign in to comment.