From 818e4299d5a2f2a26a2f2382b8713166654a6cca Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 6 Feb 2019 18:00:54 +0100 Subject: [PATCH] [fix] need to go one level deeper --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 16a7cce..91863d0 100644 --- a/server.py +++ b/server.py @@ -166,7 +166,7 @@ async def github(request): notify(f"[{repository}] @{user} {action} issue #{issue_number}: {issue_title} {url}", repository=repository) elif action in ("assigned", "unassigned"): - assigned_user = request.json["assignee"] + assigned_user = request.json["assignee"]["login"] notify(f"[{repository}] @{user} {action} {assigned_user} on issue #{issue_number}: {issue_title} {url}", repository=repository) elif action in ("labeled", "unlabeled"):