mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[mod] add a dummy page for /github GET to avoid stupid errors in logs
This commit is contained in:
parent
68e7a3cba6
commit
12817ea21b
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@ def notify(message, repository="dev"):
|
||||||
subprocess.check_call(["python", "./to_room.py", gitbot_password, message, chan])
|
subprocess.check_call(["python", "./to_room.py", gitbot_password, message, chan])
|
||||||
|
|
||||||
|
|
||||||
|
@app.route("/github", methods=['GET'])
|
||||||
|
async def github_get(request):
|
||||||
|
return text("You aren't supposed to go on this page using a browser, it's for webhooks push instead.")
|
||||||
|
|
||||||
|
|
||||||
@app.route("/github", methods=['POST'])
|
@app.route("/github", methods=['POST'])
|
||||||
async def github(request):
|
async def github(request):
|
||||||
# Only SHA1 is supported
|
# Only SHA1 is supported
|
||||||
|
|
Loading…
Reference in a new issue