[fix] was display dict, not name

This commit is contained in:
Laurent Peuch 2019-02-08 16:42:14 +01:00
parent caa7195b25
commit da18aa9788

View file

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