aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks/gitlab.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git_webhooks/gitlab.py')
-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])