1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
gh-webhook-actor/app/server.py

16 lines
293 B
Python
Raw Normal View History

2018-10-25 13:19:46 +01:00
#!/usr/bin/env python3
2018-10-25 20:49:18 +01:00
import logging
2018-10-25 13:19:46 +01:00
from flask import Flask
from github_webhook import Webhook
2018-10-25 20:49:18 +01:00
import config
logging.basicConfig(level=logging.INFO)
2018-10-25 13:19:46 +01:00
app = Flask(__name__)
2018-10-25 20:49:18 +01:00
webhook = Webhook(app, secret=config.GITHUB_WEBHOOK_SECRET)
2018-10-25 13:19:46 +01:00
if __name__ == "__main__":
app.run(host="0.0.0.0")