mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[enh] add place holder for weird release event
This commit is contained in:
parent
073f0b118a
commit
f65548defa
1 changed files with 11 additions and 0 deletions
11
server.py
11
server.py
|
@ -284,6 +284,17 @@ async def github(request):
|
||||||
|
|
||||||
notify(f"[repository] @{user} {action} new release #{release_tag} {release_title} {url}")
|
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")
|
return text("ok")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue