aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-28 14:14:46 +0000
committerGravatar jesopo2019-10-28 14:14:46 +0000
commit69e2511725a9a4e4957a3b35774965ec4819994e (patch)
tree5ec9a78fece785bbf9acde018a9d82631d49cdbc
parentwe still need to pass the base "event" to handler.webhook (diff)
signature
filter() needs a `None` arg
-rw-r--r--modules/git_webhooks/gitlab.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py
index c20dfdd0..5236111d 100644
--- a/modules/git_webhooks/gitlab.py
+++ b/modules/git_webhooks/gitlab.py
@@ -87,7 +87,8 @@ class GitLab(object):
category = "%s+%s" % (event, category)
category_action = "%s/%s" % (category, event_action)
- return list(filter([event, event_action, category, category_action]))
+ return [event]+list(filter(None,
+ [event_action, category, category_action]))
def event_categories(self, event):
return EVENT_CATEGORIES.get(event, [event])