[fix] need to go one level deeper

This commit is contained in:
Laurent Peuch 2019-02-06 18:00:54 +01:00
parent c53f87e6e1
commit 818e4299d5

View file

@ -166,7 +166,7 @@ async def github(request):
notify(f"[{repository}] @{user} {action} issue #{issue_number}: {issue_title} {url}", repository=repository) notify(f"[{repository}] @{user} {action} issue #{issue_number}: {issue_title} {url}", repository=repository)
elif action in ("assigned", "unassigned"): 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) notify(f"[{repository}] @{user} {action} {assigned_user} on issue #{issue_number}: {issue_title} {url}", repository=repository)
elif action in ("labeled", "unlabeled"): elif action in ("labeled", "unlabeled"):