From da18aa978893ccd8eb5b340636cb7158708bb8f6 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 8 Feb 2019 16:42:14 +0100 Subject: [PATCH] [fix] was display dict, not name --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index b0eb461..b1f7516 100644 --- a/server.py +++ b/server.py @@ -177,7 +177,7 @@ async def github(request): notify(f"[{repository}] @{user} {action} {assigned_user} on issue #{issue_number}: {issue_title} {url}", repository=repository) elif action in ("labeled", "unlabeled"): - label = request.json["label"] + label = request.json["label"]["name"] notify(f"[{repository}] @{user} {action} {label} on issue #{issue_number}: {issue_title} {url}", repository=repository) elif action == "milestoned": @@ -271,7 +271,7 @@ async def github(request): notify(f"[{repository}] @{user} {action} pull request #{pull_request_number}: {pull_request_title} {url}", repository=repository) elif action in ("labeled", "unlabeled"): - label = request.json["label"] + label = request.json["label"]["name"] notify(f"[{repository}] @{user} {action} {label} on pull request #{pull_request_number}: {pull_request_title} {url}", repository=repository) elif action == "closed":