initial commit
This commit is contained in:
commit
540f9309e1
|
@ -0,0 +1,18 @@
|
|||
from flask import Flask,request,json
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello():
|
||||
return 'Webhooks with Python'
|
||||
|
||||
@app.route('/githubIssue',methods=['POST'])
|
||||
def githubIssue():
|
||||
data = request.json
|
||||
print(f'Issue {data["issue"]["title"]} {data["action"]} \n')
|
||||
print(f'{data["issue"]["body"]} \n')
|
||||
print(f'{data["issue"]["url"]} \n')
|
||||
return data
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True)
|
Loading…
Reference in New Issue