mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[enh] handle milestone event
This commit is contained in:
parent
e136c96333
commit
d9122dc71f
1 changed files with 9 additions and 0 deletions
|
@ -170,6 +170,15 @@ async def github(request):
|
||||||
|
|
||||||
notify(f"[{repository}] @{user} {action} label {label}")
|
notify(f"[{repository}] @{user} {action} label {label}")
|
||||||
|
|
||||||
|
# https://developer.github.com/v3/activity/events/types/#milestoneevent
|
||||||
|
elif hook_type == "milestone":
|
||||||
|
action = request.json["action"]
|
||||||
|
repository = request.json["repository"]["name"]
|
||||||
|
user = request.json["sender"]["login"]
|
||||||
|
milestone = request.json["milestone"]["title"]
|
||||||
|
|
||||||
|
notify(f"[{repository}] @{user} {action} milestone {milestone}")
|
||||||
|
|
||||||
return text("ok")
|
return text("ok")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue