[fix] get name of label instead of dict

This commit is contained in:
Laurent Peuch 2019-02-12 22:26:08 +01:00
parent da18aa9788
commit f54b77b634

View file

@ -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"]