From d6f3965c2bb45f28d8f5ecadcdd92a717eca0437 Mon Sep 17 00:00:00 2001 From: jasquat Date: Fri, 29 Sep 2023 16:39:02 -0400 Subject: [PATCH] do not check for git source branch when using the webhook, let it fail naturally if not a git repo w/ burnettk --- .../src/spiffworkflow_backend/services/git_service.py | 1 - 1 file changed, 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py index 4dc0338a..4149efa1 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py @@ -168,7 +168,6 @@ class GitService: # only supports github right now @classmethod def handle_web_hook(cls, webhook: dict) -> bool: - cls.check_for_publish_configs() if "repository" not in webhook or "clone_url" not in webhook["repository"]: raise InvalidGitWebhookBodyError( f"Cannot find required keys of 'repository:clone_url' from webhook body: {webhook}"