fix(registry): clean content_repo failure in hygiene; retire META_REPO from .env.example; clarity + idempotency test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ben Stull
2026-06-03 23:28:08 -07:00
parent cecc6c0b41
commit 48fd6f9675
4 changed files with 38 additions and 21 deletions
+8 -1
View File
@@ -299,7 +299,14 @@ async def _delete_branch_via_bot(
log.warning("hygiene: cannot delete %s/%s — slug missing from cache", slug, branch)
return False
if not rfc["repo"]:
owner, repo = config.gitea_org, (projects_mod.default_content_repo(config) or "")
repo = projects_mod.default_content_repo(config)
if not repo:
log.warning(
"hygiene: default project has no content_repo; skipping branch delete for %s/%s",
slug, branch,
)
return False
owner = config.gitea_org
elif "/" in rfc["repo"]:
owner, repo = rfc["repo"].split("/", 1)
else: