mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-17 21:51:43 +00:00
delint
This commit is contained in:
parent
d4a90e208b
commit
5704c96356
@ -197,13 +197,15 @@ class GitService:
|
|||||||
f" body: {webhook}"
|
f" body: {webhook}"
|
||||||
)
|
)
|
||||||
|
|
||||||
config_clone_url = current_app.config["SPIFFWORKFLOW_BACKEND_GIT_PUBLISH_CLONE_URL"]
|
config_clone_url = current_app.config[
|
||||||
|
"SPIFFWORKFLOW_BACKEND_GIT_PUBLISH_CLONE_URL"
|
||||||
|
]
|
||||||
repo = webhook["repository"]
|
repo = webhook["repository"]
|
||||||
valid_clone_urls = [repo["clone_url"], repo["git_url"], repo["ssh_url"]]
|
valid_clone_urls = [repo["clone_url"], repo["git_url"], repo["ssh_url"]]
|
||||||
if config_clone_url not in valid_clone_urls:
|
if config_clone_url not in valid_clone_urls:
|
||||||
raise GitCloneUrlMismatchError(
|
raise GitCloneUrlMismatchError(
|
||||||
"Configured clone url does not match the repo URLs from webhook: %s =/= %s"
|
"Configured clone url does not match the repo URLs from webhook: %s"
|
||||||
% (config_clone_url, valid_clone_urls)
|
" =/= %s" % (config_clone_url, valid_clone_urls)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Test webhook requests have a zen koan and hook info.
|
# Test webhook requests have a zen koan and hook info.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user