fix(github): expose operator unblock actions
This commit is contained in:
@@ -54,6 +54,7 @@ def build_delivery_closure_workbench(
|
||||
github_summary = _dict(github.get("summary"))
|
||||
github_boundaries = _dict(github.get("operation_boundaries"))
|
||||
github_preflight = _dict(github.get("controlled_execution_preflight"))
|
||||
github_operator_unblock = _dict(github_preflight.get("operator_unblock"))
|
||||
gitea_status = _dict(gitea.get("program_status"))
|
||||
gitea_rollups = _dict(gitea.get("rollups"))
|
||||
runtime_status = _dict(runtime.get("program_status"))
|
||||
@@ -123,7 +124,14 @@ def build_delivery_closure_workbench(
|
||||
is True,
|
||||
},
|
||||
"href": "/governance?tab=automation-inventory",
|
||||
"operator_unblock": github_operator_unblock,
|
||||
"next_action": str(
|
||||
_first_string(github_operator_unblock.get("required_actions"))
|
||||
or github_operator_unblock.get("safe_handoff")
|
||||
or github_preflight.get("operator_unblock_status")
|
||||
or ""
|
||||
)
|
||||
or str(
|
||||
_first_target_action(github_preflight.get("targets"))
|
||||
or github.get("next_action")
|
||||
or _first_target_action(github.get("targets"))
|
||||
@@ -241,9 +249,7 @@ def build_delivery_closure_workbench(
|
||||
"github_account_status": str(
|
||||
github_preflight.get("github_account_status") or "unknown"
|
||||
),
|
||||
"github_account_suspended": github_preflight.get(
|
||||
"github_account_suspended"
|
||||
)
|
||||
"github_account_suspended": github_preflight.get("github_account_suspended")
|
||||
is True,
|
||||
"github_api_forbidden_count": _int(
|
||||
github_preflight.get("github_api_forbidden_count")
|
||||
@@ -252,6 +258,11 @@ def build_delivery_closure_workbench(
|
||||
github_preflight.get("controlled_apply_ready_count")
|
||||
),
|
||||
"github_blocked_preflight_target_count": github_preflight_blockers,
|
||||
"github_operator_unblock_required": github_operator_unblock.get("required")
|
||||
is True,
|
||||
"github_operator_unblock_status": str(
|
||||
github_operator_unblock.get("status") or ""
|
||||
),
|
||||
"secret_values_collected": False,
|
||||
},
|
||||
"source_statuses": source_statuses,
|
||||
|
||||
Reference in New Issue
Block a user