#!/usr/bin/env python3
import logging
from flask import Flask, abort, jsonify
from github_webhook import Webhook
from . import config
logging.basicConfig(level=logging.INFO)
app = Flask(__name__)
webhook = Webhook(app, secret=config.GITHUB_WEBHOOK_SECRET)
@webhook.hook(event_type="ping")
def ping(data):
return abort(jsonify({"ping": "pong"}))