aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-15 16:10:18 +0100
committerGravatar jesopo2019-10-15 16:10:18 +0100
commit2f94e7546f1b2ca2506d337244a1c31de2abe14f (patch)
tree55c0a47dc2efb73040fbd1efbd99ecf1754a3356
parentadd first draft of gitlab webhook support (diff)
signature
actually instantiate gitlab in git_webhooks/__init__.py
-rw-r--r--modules/git_webhooks/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/git_webhooks/__init__.py b/modules/git_webhooks/__init__.py
index a3c3317b..721b2a26 100644
--- a/modules/git_webhooks/__init__.py
+++ b/modules/git_webhooks/__init__.py
@@ -5,7 +5,7 @@
import itertools, json, re, urllib.parse
from src import ModuleManager, utils
-from . import colors, gitea, github
+from . import colors, gitea, github, gitlab
FORM_ENCODED = "application/x-www-form-urlencoded"
@@ -27,6 +27,7 @@ class Module(ModuleManager.BaseModule):
def on_load(self):
self._github = github.GitHub(self.log)
self._gitea = gitea.Gitea()
+ self._gitlab = gitlab.GitLab()
@utils.hook("api.post.github")
def _api_github_webhook(self, event):