Skip to content

Commit 0b95431

Browse files
committed
chore: revert to use createProbot
1 parent 4222896 commit 0b95431

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

api/src/probot.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { createNodeMiddleware, Probot } from 'probot';
1+
import { createNodeMiddleware, Probot, createProbot } from 'probot';
22

33
// 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',
4+
const probot = createProbot({
5+
overrides: {
6+
appId: process.env.GITHUB_APP_ID,
7+
privateKey: process.env.GITHUB_APP_PRIVATE_KEY,
8+
},
99
});
1010

1111
// Queries a repository and extracts a file

0 commit comments

Comments
 (0)