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 4222896 commit 0b95431Copy full SHA for 0b95431
api/src/probot.ts
@@ -1,11 +1,11 @@
1
-import { createNodeMiddleware, Probot } from 'probot';
+import { createNodeMiddleware, Probot, createProbot } from 'probot';
2
3
// Create a probot instance for the docs.page app
4
-const probot = new Probot({
5
- appId: process.env.GITHUB_APP_ID,
6
- privateKey: process.env.GITHUB_APP_PRIVATE_KEY,
7
- // secret: process.env.GITHUB_APP_WEBHOOK_SECRET,
8
- logLevel: 'trace',
+const probot = createProbot({
+ overrides: {
+ appId: process.env.GITHUB_APP_ID,
+ privateKey: process.env.GITHUB_APP_PRIVATE_KEY,
+ },
9
});
10
11
// Queries a repository and extracts a file
0 commit comments