From d013703705e01cb5e41fe7dac2de58901ca0b22d Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 7 Feb 2019 07:42:05 +0000 Subject: `commit_comment` events have `commit_id` in `comment`, not in the root data (github) --- modules/github/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/github/__init__.py') diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 88ba324d..7459e25b 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -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)] -- cgit v1.3.1-10-gc9f91