Skip to content

Instantly share code, notes, and snippets.

@chadfawcett
Created December 21, 2018 05:00
Show Gist options
  • Save chadfawcett/662c7aa954a24b4402fe1d33049d2c9d to your computer and use it in GitHub Desktop.
Save chadfawcett/662c7aa954a24b4402fe1d33049d2c9d to your computer and use it in GitHub Desktop.
Probot wrapper for deployment on Zeit Now 2.0
// 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