From f54b77b634c4d13a2c284c52ab75be12f32aa218 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 12 Feb 2019 22:26:08 +0100 Subject: [PATCH] [fix] get name of label instead of dict --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index b1f7516..57c7f8a 100644 --- a/server.py +++ b/server.py @@ -193,7 +193,7 @@ async def github(request): # https://developer.github.com/v3/activity/events/types/#labelevent elif hook_type == "label": action = request.json["action"] - label = request.json["label"] + label = request.json["label"]["name"] repository = request.json["repository"]["name"] user = request.json["sender"]["login"]