aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
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)