aboutsummaryrefslogtreecommitdiff
path: root/modules/github
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-07 15:46:07 +0000
committerGravatar jesopo2019-02-07 15:46:07 +0000
commitc401c45a023534b861f358f4fb9a8e17f58d9320 (patch)
treeb0217ec441d17cf1ba68751f7bfc8b4058652349 /modules/github
parentRemove hanging "or" that i forgot to remove (line_handler.py) (diff)
signature
typo, "_short_id" -> "_short_hash" (github)
Diffstat (limited to 'modules/github')
-rw-r--r--modules/github/__init__.py4
1 files changed, 2 insertions, 2 deletions
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)]