From cd3014fe17b822b64c7a761f7ce7449ef9de4228 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 20 Feb 2019 23:06:47 +0100 Subject: [PATCH] [fix] display some status events --- server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 93eb3c8..757b8be 100644 --- a/server.py +++ b/server.py @@ -328,7 +328,10 @@ async def github(request): 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}") + if state != "success": + notify(f"[{repository}] {description} {target_url} on commit {url}") + else: + print(f"Status weird stuff: [{repository}] @{user} state: {state}, description: {description}, target_url: {target_url} - {url}") return text("ok")