commit_comment events have commit_id in comment, not in the root data (github)

This commit is contained in:
jesopo 2019-02-07 07:42:05 +00:00
parent 7dd1eca7ae
commit d013703705

View file

@ -420,7 +420,7 @@ class Module(ModuleManager.BaseModule):
def commit_comment(self, full_name, data):
action = data["action"]
commit = data["commit_id"][:8]
commit = data["comment"]["commit_id"][:8]
commenter = utils.irc.bold(data["comment"]["user"]["login"])
url = self._short_url(data["comment"]["html_url"])
return ["[commit/%s] %s commented" % (commit, commenter, action)]