diff options
| author | 2019-10-15 16:10:18 +0100 | |
|---|---|---|
| committer | 2019-10-15 16:10:18 +0100 | |
| commit | 2f94e7546f1b2ca2506d337244a1c31de2abe14f (patch) | |
| tree | 55c0a47dc2efb73040fbd1efbd99ecf1754a3356 /modules/git_webhooks/__init__.py | |
| parent | add first draft of gitlab webhook support (diff) | |
| signature | ||
actually instantiate gitlab in git_webhooks/__init__.py
Diffstat (limited to 'modules/git_webhooks/__init__.py')
| -rw-r--r-- | modules/git_webhooks/__init__.py | 3 |
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): |
