From b15ef9f73969a6ce3061f6e0dd70d670bb758c41 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 17 Nov 2018 08:28:48 +0000 Subject: [PATCH] use "before" commit hash for comparing a range of commits --- modules/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)