aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-17 08:28:48 +0000
committerGravatar jesopo2018-11-17 08:28:48 +0000
commitb15ef9f73969a6ce3061f6e0dd70d670bb758c41 (patch)
treeb149d7b8737001ebb2185e00726eacfeaceff84c /modules/github.py
parentTypo in modules/github.py, 'moddified' -> 'modified' (diff)
signature
use "before" commit hash for comparing a range of commits
Diffstat (limited to 'modules/github.py')
-rw-r--r--modules/github.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/github.py b/modules/github.py
index ca3a7787..c1e25f3a 100644
--- a/modules/github.py
+++ b/modules/github.py
@@ -100,7 +100,7 @@ class Module(ModuleManager.BaseModule):
% (full_name, added, removed, modified, author, message,
url))
else:
- first_id = self._short_hash(data["commits"][0]["id"])
+ first_id = self._short_hash(data["before"])
last_id = self._short_hash(data["commits"][-1]["id"])
pusher = data["pusher"]["name"]
url = COMMIT_RANGE_URL % (full_name, first_id, last_id)