aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-24 17:41:29 +0100
committerGravatar jesopo2019-06-24 17:41:29 +0100
commit75e8a64ff9b563b8d1176cdaadcc4837205f8764 (patch)
tree5c9575d401fbc38d599914e7a5c055735e999c8d /modules/git_webhooks
parent'forced' pushes do not exist in gitea webhooks (diff)
signature
gitea `create` hooks have no url
Diffstat (limited to 'modules/git_webhooks')
-rw-r--r--modules/git_webhooks/gitea.py3
1 files changed, 1 insertions, 2 deletions
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"]