Capitalise 'PR' in issue_comment events for pull requests (github)

This commit is contained in:
jesopo 2019-03-01 21:12:46 +00:00
parent 1e9772e578
commit 43eda14267

View file

@ -545,7 +545,7 @@ class Module(ModuleManager.BaseModule):
number = utils.irc.color("#%s" % data["issue"]["number"], COLOR_ID) number = utils.irc.color("#%s" % data["issue"]["number"], COLOR_ID)
action = data["action"] action = data["action"]
issue_title = data["issue"]["title"] issue_title = data["issue"]["title"]
type = "pr" if "pull_request" in data["issue"] else "issue" type = "PR" if "pull_request" in data["issue"] else "issue"
commenter = utils.irc.bold(data["sender"]["login"]) commenter = utils.irc.bold(data["sender"]["login"])
url = self._short_url(data["comment"]["html_url"]) url = self._short_url(data["comment"]["html_url"])
return ["[%s] %s %s on %s: %s - %s" % return ["[%s] %s %s on %s: %s - %s" %