diff options
| author | 2020-02-10 10:37:27 +0000 | |
|---|---|---|
| committer | 2020-02-10 10:37:27 +0000 | |
| commit | 6e90bf241204dcbf464a9086c07bf85cb1f82ed3 (patch) | |
| tree | dc5f34a64e021abd1d975f8fc988e7b90ac7fc9c /modules/git_webhooks/github.py | |
| parent | format and print ACCOUNT events (diff) | |
| signature | ||
show issue/pr title for issue_comment events
Diffstat (limited to 'modules/git_webhooks/github.py')
| -rw-r--r-- | modules/git_webhooks/github.py | 6 |
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"] |
