Don't use shortened commit hashes to make URLs
This commit is contained in:
parent
b4fca127d1
commit
35ba165e0c
1 changed files with 3 additions and 3 deletions
|
@ -436,7 +436,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
if len(data["commits"]) <= 3:
|
if len(data["commits"]) <= 3:
|
||||||
for commit in data["commits"]:
|
for commit in data["commits"]:
|
||||||
id = self._short_hash(commit["id"])
|
id = commit["id"]
|
||||||
message = commit["message"].split("\n")[0].strip()
|
message = commit["message"].split("\n")[0].strip()
|
||||||
author = utils.irc.bold(data["pusher"]["name"])
|
author = utils.irc.bold(data["pusher"]["name"])
|
||||||
url = self._short_url(COMMIT_URL % (full_name, id))
|
url = self._short_url(COMMIT_URL % (full_name, id))
|
||||||
|
@ -450,8 +450,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
% (author, forced, branch, added, removed, modified,
|
% (author, forced, branch, added, removed, modified,
|
||||||
message, url))
|
message, url))
|
||||||
else:
|
else:
|
||||||
first_id = self._short_hash(data["before"])
|
first_id = data["before"]
|
||||||
last_id = self._short_hash(data["commits"][-1]["id"])
|
last_id = data["commits"][-1]["id"]
|
||||||
pusher = utils.irc.bold(data["pusher"]["name"])
|
pusher = utils.irc.bold(data["pusher"]["name"])
|
||||||
url = self._short_url(
|
url = self._short_url(
|
||||||
COMMIT_RANGE_URL % (full_name, first_id, last_id))
|
COMMIT_RANGE_URL % (full_name, first_id, last_id))
|
||||||
|
|
Loading…
Reference in a new issue