From ff00183b4590d11f8b91ad9cf83b8928cd2b1b27 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 6 Feb 2019 13:34:19 +0100 Subject: [PATCH] [enh] also display issue title --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 6c33090..06832b6 100644 --- a/server.py +++ b/server.py @@ -124,12 +124,13 @@ async def github(request): user = request.json["sender"]["login"] url = request.json["comment"]["html_url"] issue_number = request.json["issue"]["number"] + issue_title = request.json["issue"]["title"] comment = request.json["comment"]["body"] if len(comment) > 120: comment = comment[:120] + "..." - notify(f"[{repository}] @{user} commented on issue #{issue_number}: {comment} {url}") + notify(f"[{repository}] @{user} commented on issue #{issue_number} {issue_title}: {comment} {url}") # https://developer.github.com/v3/activity/events/types/#issuesevent elif hook_type == "issues":