fix(release): fail closed on dashboard parse errors
This commit is contained in:
@@ -18,6 +18,17 @@ def build_release_plan(dashboard: ReleaseDashboard) -> ReleasePlan:
|
||||
target_version = dashboard.target_version
|
||||
target_tag = dashboard.target_tag
|
||||
|
||||
for index, error in enumerate(dashboard.collection_errors, start=1):
|
||||
actions.append(
|
||||
PlanAction(
|
||||
id=f"dashboard:{error.code}:{index}",
|
||||
title=f"Release metadata is unreadable in {error.repo or 'the workspace'}",
|
||||
detail=f"{error.message} {error.remediation}",
|
||||
severity="blocker",
|
||||
repo=error.repo,
|
||||
)
|
||||
)
|
||||
|
||||
for repo in dashboard.repositories:
|
||||
if not repo.exists:
|
||||
actions.append(
|
||||
|
||||
Reference in New Issue
Block a user