typo, "_short_id" -> "_short_hash" (github)
This commit is contained in:
parent
f6079d92c8
commit
c401c45a02
1 changed files with 2 additions and 2 deletions
|
@ -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)]
|
||||
|
||||
|
|
Loading…
Reference in a new issue