mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] we don't care about those
This commit is contained in:
parent
4a230b887c
commit
f2698baa14
1 changed files with 1 additions and 1 deletions
|
@ -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}")
|
||||||
|
|
Loading…
Reference in a new issue