[fix] we don't care about those

This commit is contained in:
Laurent Peuch 2019-02-20 23:09:52 +01:00
parent 4a230b887c
commit f2698baa14

View file

@ -331,7 +331,7 @@ async def github(request):
user = request.json["sender"]["login"] user = request.json["sender"]["login"]
url = request.json["commit"]["html_url"] url = request.json["commit"]["html_url"]
if state != "success": if state not in ("success", "pending"):
notify(f"[{repository}] {description} {target_url} on commit {url}") notify(f"[{repository}] {description} {target_url} on commit {url}")
else: else:
print(f"Status weird stuff: [{repository}] @{user} state: {state}, description: {description}, target_url: {target_url} - {url}") print(f"Status weird stuff: [{repository}] @{user} state: {state}, description: {description}, target_url: {target_url} - {url}")