flip create/delete tag detection logic

This commit is contained in:
jesopo 2019-10-20 13:39:04 +01:00
parent a4fbc150c8
commit 31531949ce

View file

@ -91,7 +91,7 @@ class GitLab(object):
return hash[:8]
def tag_push(self, full_name, data):
create = data["after"].strip("0")==""
create = not data["after"].strip("0") == ""
tag = utils.irc.color(data["ref"].rsplit("/", 1)[-1],
colors.COLOR_BRANCH)
author = utils.irc.bold(data["user_username"])