actually instantiate gitlab in git_webhooks/__init__.py

This commit is contained in:
jesopo 2019-10-15 16:10:18 +01:00
parent be30cb81af
commit 2f94e7546f

View file

@ -5,7 +5,7 @@
import itertools, json, re, urllib.parse import itertools, json, re, urllib.parse
from src import ModuleManager, utils from src import ModuleManager, utils
from . import colors, gitea, github from . import colors, gitea, github, gitlab
FORM_ENCODED = "application/x-www-form-urlencoded" FORM_ENCODED = "application/x-www-form-urlencoded"
@ -27,6 +27,7 @@ class Module(ModuleManager.BaseModule):
def on_load(self): def on_load(self):
self._github = github.GitHub(self.log) self._github = github.GitHub(self.log)
self._gitea = gitea.Gitea() self._gitea = gitea.Gitea()
self._gitlab = gitlab.GitLab()
@utils.hook("api.post.github") @utils.hook("api.post.github")
def _api_github_webhook(self, event): def _api_github_webhook(self, event):