gitea create
hooks have no url
This commit is contained in:
parent
cbd35914db
commit
75e8a64ff9
1 changed files with 1 additions and 2 deletions
|
@ -215,8 +215,7 @@ class Gitea(object):
|
||||||
ref_color = utils.irc.color(ref, colors.COLOR_BRANCH)
|
ref_color = utils.irc.color(ref, colors.COLOR_BRANCH)
|
||||||
type = data["ref_type"]
|
type = data["ref_type"]
|
||||||
sender = utils.irc.bold(data["sender"]["login"])
|
sender = utils.irc.bold(data["sender"]["login"])
|
||||||
url = self._short_url(CREATE_URL % (full_name, ref))
|
return ["%s created a %s: %s" % (sender, type, ref_color)]
|
||||||
return ["%s created a %s: %s - %s" % (sender, type, ref_color, url)]
|
|
||||||
|
|
||||||
def delete(self, full_name, data):
|
def delete(self, full_name, data):
|
||||||
ref = data["ref"]
|
ref = data["ref"]
|
||||||
|
|
Loading…
Reference in a new issue