diff --git a/buildtrigger/githubhandler.py b/buildtrigger/githubhandler.py index b7eca92cc..7c47df4ff 100644 --- a/buildtrigger/githubhandler.py +++ b/buildtrigger/githubhandler.py @@ -11,7 +11,7 @@ from github import (Github, UnknownObjectException, GithubException, from jsonschema import validate -from app import github_trigger +from app import app, github_trigger from buildtrigger.triggerutil import (RepositoryReadException, TriggerActivationException, TriggerDeactivationException, TriggerStartException, EmptyRepositoryException, ValidationRequestException, diff --git a/buildtrigger/test/test_gitlabhandler.py b/buildtrigger/test/test_gitlabhandler.py index 25170cbca..c88c591d6 100644 --- a/buildtrigger/test/test_gitlabhandler.py +++ b/buildtrigger/test/test_gitlabhandler.py @@ -40,6 +40,7 @@ def test_lookup_user(email, expected_response, gitlab_trigger): # Valid payload: ('''{ + "object_kind": "push", "ref": "refs/heads/master", "checkout_sha": "aaaaaaa", "repository": { @@ -57,6 +58,7 @@ def test_lookup_user(email, expected_response, gitlab_trigger): # Skip message: ('''{ + "object_kind": "push", "ref": "refs/heads/master", "checkout_sha": "aaaaaaa", "repository": {