Verified Commit 8169833c authored by Sofus Rose's avatar Sofus Rose

Made simple webhook for testing.

parents
gitlab-hook
from flask import Flask, request
import json
app = Flask(__name__)
@app.route('/',methods=['POST'])
def foo():
data = json.loads(request.data)
print("New commit by: {}".format(data['commits'][0]['author']['name']))
return "OK"
if __name__ == '__main__':
app.run(port=7080)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment