From f65548defa71bae216209af2542e04ec405de45c Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 6 Feb 2019 13:30:53 +0100 Subject: [PATCH] [enh] add place holder for weird release event --- server.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server.py b/server.py index 47e6c01..6c33090 100644 --- a/server.py +++ b/server.py @@ -284,6 +284,17 @@ async def github(request): notify(f"[repository] @{user} {action} new release #{release_tag} {release_title} {url}") + # https://developer.github.com/v3/activity/events/types/#statusevent + elif hook_type == "release": + state = request.json["state"] + description = request.json["description"] + target_url = request.json["target_url"] + repository = request.json["repository"]["name"] + user = request.json["sender"]["login"] + url = request.json["commit"]["html_url"] + + print(f"Status weird stuff: [{repository}] @{user} state: {state}, description: {description}, target_url: {target_url} - {url}") + return text("ok")