Skip to content

Commit 48e620e

Browse files
committed
fix: stop spamming messages
1 parent 1c232f1 commit 48e620e

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/utils/getProbot.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
const { createProbot } = require('probot')
22
const { findPrivateKey } = require('probot/lib/private-key')
33

4-
let probot
5-
64
function getProbot() {
7-
probot =
8-
probot ||
9-
createProbot({
10-
id: process.env.APP_ID,
11-
secret: process.env.WEBHOOK_SECRET,
12-
cert: findPrivateKey(),
13-
})
5+
const probot = createProbot({
6+
id: process.env.APP_ID,
7+
secret: process.env.WEBHOOK_SECRET,
8+
cert: findPrivateKey(),
9+
})
1410

1511
if (process.env.SENTRY_DSN) {
1612
probot.load(require('probot/lib/apps/sentry'))

0 commit comments

Comments
 (0)