From c401c45a023534b861f358f4fb9a8e17f58d9320 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 7 Feb 2019 15:46:07 +0000 Subject: typo, "_short_id" -> "_short_hash" (github) --- modules/github/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/github') diff --git a/modules/github/__init__.py b/modules/github/__init__.py index e253fd7b..3a977f08 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -424,7 +424,7 @@ class Module(ModuleManager.BaseModule): def commit_comment(self, full_name, data): action = data["action"] - commit = data["comment"]["commit_id"][:8] + commit = self._short_hash(data["comment"]["commit_id"]) commenter = utils.irc.bold(data["comment"]["user"]["login"]) url = self._short_url(data["comment"]["html_url"]) return ["[commit/%s] %s commented" % (commit, commenter, action)] @@ -530,7 +530,7 @@ class Module(ModuleManager.BaseModule): context = data["context"] state = data["state"] url = data["target_url"] - commit = self._short_id(data["sha"]) + commit = self._short_hash(data["sha"]) return ["[%s status] %s is '%s' - %s" % (commit, context, state, url)] -- cgit v1.3.1-10-gc9f91