Boldify sender on a pull request review comment (github.py)

This commit is contained in:
jesopo 2019-01-09 22:33:02 +00:00
parent ac3c361399
commit 56f431176c

View file

@ -243,7 +243,7 @@ class Module(ModuleManager.BaseModule):
number = data["pull_request"]["number"] number = data["pull_request"]["number"]
action = data["action"] action = data["action"]
pr_title = data["pull_request"]["title"] pr_title = data["pull_request"]["title"]
sender = data["sender"]["login"] sender = utils.irc.bold(data["sender"]["login"])
url = self._short_url(data["comment"]["html_url"]) url = self._short_url(data["comment"]["html_url"])
return ["[pr #%d] %s %s on a review: %s - %s" % return ["[pr #%d] %s %s on a review: %s - %s" %
(number, sender, COMMENT_ACTIONS[action], pr_title, url)] (number, sender, COMMENT_ACTIONS[action], pr_title, url)]