actually instantiate gitlab in git_webhooks/__init__.py
This commit is contained in:
parent
be30cb81af
commit
2f94e7546f
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue