mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-27 10:15:10 +00:00
do not check for git source branch when using the webhook, let it fail naturally if not a git repo w/ burnettk
This commit is contained in:
parent
8220aa42ef
commit
d6f3965c2b
@ -168,7 +168,6 @@ class GitService:
|
|||||||
# only supports github right now
|
# only supports github right now
|
||||||
@classmethod
|
@classmethod
|
||||||
def handle_web_hook(cls, webhook: dict) -> bool:
|
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"]:
|
if "repository" not in webhook or "clone_url" not in webhook["repository"]:
|
||||||
raise InvalidGitWebhookBodyError(
|
raise InvalidGitWebhookBodyError(
|
||||||
f"Cannot find required keys of 'repository:clone_url' from webhook body: {webhook}"
|
f"Cannot find required keys of 'repository:clone_url' from webhook body: {webhook}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user