From 75e8a64ff9b563b8d1176cdaadcc4837205f8764 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 24 Jun 2019 17:41:29 +0100 Subject: gitea `create` hooks have no url --- modules/git_webhooks/gitea.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/git_webhooks/gitea.py') diff --git a/modules/git_webhooks/gitea.py b/modules/git_webhooks/gitea.py index 85d1e7fd..980dbc7d 100644 --- a/modules/git_webhooks/gitea.py +++ b/modules/git_webhooks/gitea.py @@ -215,8 +215,7 @@ class Gitea(object): ref_color = utils.irc.color(ref, colors.COLOR_BRANCH) type = data["ref_type"] sender = utils.irc.bold(data["sender"]["login"]) - url = self._short_url(CREATE_URL % (full_name, ref)) - return ["%s created a %s: %s - %s" % (sender, type, ref_color, url)] + return ["%s created a %s: %s" % (sender, type, ref_color)] def delete(self, full_name, data): ref = data["ref"] -- cgit v1.3.1-10-gc9f91