mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] display some status events
This commit is contained in:
parent
9eb8e4a0e0
commit
cd3014fe17
1 changed files with 4 additions and 1 deletions
|
@ -328,6 +328,9 @@ 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":
|
||||||
|
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}")
|
print(f"Status weird stuff: [{repository}] @{user} state: {state}, description: {description}, target_url: {target_url} - {url}")
|
||||||
|
|
||||||
return text("ok")
|
return text("ok")
|
||||||
|
|
Loading…
Reference in a new issue