github.py needs exports from git_webhooks

This commit is contained in:
jesopo 2020-10-17 14:07:02 +00:00
parent 26b2037c9b
commit 09cfae75b8
2 changed files with 3 additions and 2 deletions

View file

@ -31,7 +31,7 @@ class Module(ModuleManager.BaseModule):
_name = "Webhooks"
def on_load(self):
self._github = github.GitHub(self.log)
self._github = github.GitHub(self.log, self.exports)
self._gitea = gitea.Gitea()
self._gitlab = gitlab.GitLab()

View file

@ -88,8 +88,9 @@ CHECK_RUN_CONCLUSION = {
CHECK_RUN_FAILURES = ["failure", "cancelled", "timed_out", "action_required"]
class GitHub(object):
def __init__(self, log):
def __init__(self, log, exports):
self.log = log
self.exports = exports
def is_private(self, data, headers):
if "repository" in data: