From 35ba165e0c9ba6ef2a0f3d0617627ffe9dc1cee5 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 28 Feb 2019 17:21:19 +0000 Subject: Don't use shortened commit hashes to make URLs --- modules/github/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/github') diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 3d03fbd5..b84ac2e0 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -436,7 +436,7 @@ class Module(ModuleManager.BaseModule): if len(data["commits"]) <= 3: for commit in data["commits"]: - id = self._short_hash(commit["id"]) + id = commit["id"] message = commit["message"].split("\n")[0].strip() author = utils.irc.bold(data["pusher"]["name"]) url = self._short_url(COMMIT_URL % (full_name, id)) @@ -450,8 +450,8 @@ class Module(ModuleManager.BaseModule): % (author, forced, branch, added, removed, modified, message, url)) else: - first_id = self._short_hash(data["before"]) - last_id = self._short_hash(data["commits"][-1]["id"]) + first_id = data["before"] + last_id = data["commits"][-1]["id"] pusher = utils.irc.bold(data["pusher"]["name"]) url = self._short_url( COMMIT_RANGE_URL % (full_name, first_id, last_id)) -- cgit v1.3.1-10-gc9f91