From 31531949cea56253b318b77cc6b1d85a4b9d6d6c Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 20 Oct 2019 13:39:04 +0100 Subject: flip create/delete tag detection logic --- modules/git_webhooks/gitlab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/git_webhooks/gitlab.py') diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py index 7034ebfa..63619519 100644 --- a/modules/git_webhooks/gitlab.py +++ b/modules/git_webhooks/gitlab.py @@ -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"]) -- cgit v1.3.1-10-gc9f91