We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55ddd2c commit 2da7507Copy full SHA for 2da7507
index.js
@@ -1,15 +1,15 @@
1
-const { createProbot } = require('probot')
2
-const { resolve } = require('probot/lib/resolver')
3
-const { findPrivateKey } = require('probot/lib/private-key')
+const { Probot } = require('probot')
+const { resolve } = require('probot/lib/helpers/resolve-app-function')
+const { findPrivateKey } = require('probot/lib/helpers/get-private-key')
4
const { template } = require('./views/probot')
5
6
let probot
7
8
const loadProbot = appFn => {
9
- probot = probot || createProbot({
+ probot = probot || new Probot({
10
id: process.env.APP_ID,
11
secret: process.env.WEBHOOK_SECRET,
12
- cert: findPrivateKey()
+ privateKey: findPrivateKey()
13
})
14
15
if (typeof appFn === 'string') {
0 commit comments