Align website tooling with govoplan-website rename
This commit is contained in:
@@ -167,7 +167,7 @@ def executor_spec(plan_step: dict[str, Any]) -> ExecutorSpec | None:
|
||||
spec
|
||||
if plan_step.get("repo") is None
|
||||
and isinstance(binding, dict)
|
||||
and binding.get("repo") == "addideas-govoplan-website"
|
||||
and binding.get("repo") == "govoplan-website"
|
||||
else None
|
||||
)
|
||||
repo = plan_step.get("repo")
|
||||
@@ -233,7 +233,7 @@ def bind_plan_source_states(
|
||||
bindings[repo] = None
|
||||
try:
|
||||
website_binding = repository_state_receipt(
|
||||
repo="addideas-govoplan-website",
|
||||
repo="govoplan-website",
|
||||
target_tag="",
|
||||
workspace_root=workspace_root,
|
||||
include_website=True,
|
||||
@@ -1665,7 +1665,7 @@ def verify_catalog_publication_precondition(
|
||||
*, plan_step: dict[str, Any], workspace_root: Path
|
||||
) -> dict[str, Any]:
|
||||
current = repository_state_receipt(
|
||||
repo="addideas-govoplan-website",
|
||||
repo="govoplan-website",
|
||||
target_tag="",
|
||||
workspace_root=workspace_root,
|
||||
include_website=True,
|
||||
@@ -3052,7 +3052,7 @@ def reconciled_catalog_publication_receipt(
|
||||
|
||||
web_root = website_root(workspace_root)
|
||||
current = repository_state_receipt(
|
||||
repo="addideas-govoplan-website",
|
||||
repo="govoplan-website",
|
||||
target_tag="",
|
||||
workspace_root=workspace_root,
|
||||
include_website=True,
|
||||
@@ -3181,7 +3181,7 @@ def _validated_website_binding(value: object) -> dict[str, Any]:
|
||||
if (
|
||||
not isinstance(value, dict)
|
||||
or value.get("kind") != "repository_state"
|
||||
or value.get("repo") != "addideas-govoplan-website"
|
||||
or value.get("repo") != "govoplan-website"
|
||||
or value.get("remote") != DURABLE_REMOTE
|
||||
or value.get("target_tag") != ""
|
||||
or value.get("tag_object") is not None
|
||||
|
||||
@@ -56,4 +56,4 @@ def core_root(workspace_root: Path) -> Path:
|
||||
|
||||
|
||||
def website_root(workspace_root: Path) -> Path:
|
||||
return workspace_root / "addideas-govoplan-website"
|
||||
return workspace_root / "govoplan-website"
|
||||
|
||||
Reference in New Issue
Block a user