Don't double-shorten push range urls

This commit is contained in:
jesopo 2019-07-02 07:31:26 +01:00
parent d671d8b470
commit 93b455d5b8

View file

@ -193,8 +193,7 @@ class GitHub(object):
if len(data["commits"]): if len(data["commits"]):
first_id = data["before"] first_id = data["before"]
last_id = data["commits"][-1]["id"] last_id = data["commits"][-1]["id"]
range_url = self._short_url( range_url = COMMIT_RANGE_URL % (full_name, first_id, last_id)
COMMIT_RANGE_URL % (full_name, first_id, last_id))
single_url = COMMIT_URL % (full_name, "%s") single_url = COMMIT_URL % (full_name, "%s")