mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] get name of label instead of dict
This commit is contained in:
parent
da18aa9788
commit
f54b77b634
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ async def github(request):
|
||||||
# https://developer.github.com/v3/activity/events/types/#labelevent
|
# https://developer.github.com/v3/activity/events/types/#labelevent
|
||||||
elif hook_type == "label":
|
elif hook_type == "label":
|
||||||
action = request.json["action"]
|
action = request.json["action"]
|
||||||
label = request.json["label"]
|
label = request.json["label"]["name"]
|
||||||
repository = request.json["repository"]["name"]
|
repository = request.json["repository"]["name"]
|
||||||
user = request.json["sender"]["login"]
|
user = request.json["sender"]["login"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue