Created
December 21, 2018 05:00
-
-
Save chadfawcett/662c7aa954a24b4402fe1d33049d2c9d to your computer and use it in GitHub Desktop.
Probot wrapper for deployment on Zeit Now 2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simplified for clarity | |
const { createProbot } = require('probot') | |
const app = require('../') | |
const probot = createProbot({ | |
id: process.env.APP_ID, | |
secret: process.env.WEBHOOK_SECRET, | |
cert: process.env.PRIVATE_KEY | |
}) | |
probot.load(app) | |
module.exports = probot.webhook.middleware |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment