From e1f34c4b8ac599d6fe5c234f70f190add5c82b78 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 27 Jun 2019 11:08:18 +0100 Subject: [PATCH] shortify push range url --- modules/git_webhooks/github.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py index e2581ba2..09f5ef92 100644 --- a/modules/git_webhooks/github.py +++ b/modules/git_webhooks/github.py @@ -215,7 +215,8 @@ class GitHub(object): % (author, forced_str, hash_colored, branch, message, url)) else: outputs.append("%s %spushed %d commits to %s - %s" - % (author, forced_str, len(commits), branch, range_url)) + % (author, forced_str, len(commits), branch, + self._short_url(range_url))) return outputs