aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-10 10:37:27 +0000
committerGravatar jesopo2020-02-10 10:37:27 +0000
commit6e90bf241204dcbf464a9086c07bf85cb1f82ed3 (patch)
treedc5f34a64e021abd1d975f8fc988e7b90ac7fc9c /modules
parentformat and print ACCOUNT events (diff)
signature
show issue/pr title for issue_comment events
Diffstat (limited to 'modules')
-rw-r--r--modules/git_webhooks/github.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py
index a3f51c89..d9925ef0 100644
--- a/modules/git_webhooks/github.py
+++ b/modules/git_webhooks/github.py
@@ -393,6 +393,7 @@ class GitHub(object):
action = data["action"]
issue_title = data["issue"]["title"]
type = "PR" if "pull_request" in data["issue"] else "issue"
+ title = data["issue"]["title"]
commenter = utils.irc.bold(data["sender"]["login"])
url = self._short_url(data["comment"]["html_url"])
@@ -400,8 +401,9 @@ class GitHub(object):
if not action == "deleted":
body = ": %s" % self._comment(data["comment"]["body"])
- return ["[%s] %s %s on %s%s - %s" %
- (type, commenter, COMMENT_ACTIONS[action], number, body, url)]
+ return ["[%s] %s %s on %s (%s)%s - %s" %
+ (type, commenter, COMMENT_ACTIONS[action], number, title, body,
+ url)]
def create(self, full_name, data):
ref = data["ref"]