aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks/gitea.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-28 14:10:42 +0000
committerGravatar jesopo2019-10-28 14:10:42 +0000
commit7766c889f460a427cd1f3fe5711c32fe2a2bee56 (patch)
tree4b7a214ce833b45c6081e19520c3e308a272e40b /modules/git_webhooks/gitea.py
parentfix relay exception (diff)
signature
support event 'category' for GitLab (e.g. Note events but only for Issues)
Diffstat (limited to 'modules/git_webhooks/gitea.py')
-rw-r--r--modules/git_webhooks/gitea.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git_webhooks/gitea.py b/modules/git_webhooks/gitea.py
index 19abd8bf..53172f6f 100644
--- a/modules/git_webhooks/gitea.py
+++ b/modules/git_webhooks/gitea.py
@@ -72,7 +72,7 @@ class Gitea(object):
event_action = None
if "action" in data:
event_action = "%s/%s" % (event, data["action"])
- return event, event_action
+ return [event]+([event_action] if event_action else [])
def event_categories(self, event):
return EVENT_CATEGORIES.get(event, [event])