We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6857933 commit 21391f1Copy full SHA for 21391f1
function.js
@@ -1,7 +1,16 @@
1
-import { createNodeMiddleware, createProbot } from "probot";
+import { createNodeMiddleware, Probot } from "probot";
2
import appFn from "./dist/handlers/app.js";
3
4
+console.log("AutoMaintainer App Initialized");
5
+const probot = new Probot({
6
+ appId: process.env.APP_ID,
7
+ privateKey: process.env.PRIVATE_KEY,
8
+ secret: process.env.WEBHOOK_SECRET,
9
+});
10
+
11
+probot.load(appFn);
12
13
export const probotApp = createNodeMiddleware(appFn, {
- probot: createProbot(),
14
+ probot: probot,
15
webhooksPath: "/",
16
});
0 commit comments