diff options
| author | 2019-10-20 13:39:04 +0100 | |
|---|---|---|
| committer | 2019-10-20 13:39:04 +0100 | |
| commit | 31531949cea56253b318b77cc6b1d85a4b9d6d6c (patch) | |
| tree | 737bbca3995b79565255b25fa2234fafb8e7a471 | |
| parent | add missing ] (diff) | |
| signature | ||
flip create/delete tag detection logic
| -rw-r--r-- | modules/git_webhooks/gitlab.py | 2 |
1 files changed, 1 insertions, 1 deletions
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"]) |
