MCPcopy Index your code
hub / github.com/github/spec-kit / _workflow_run_payload

Function _workflow_run_payload

src/specify_cli/workflows/_commands.py:171–183  ·  view source on GitHub ↗

Machine-readable summary of a run/resume outcome.

(state: Any)

Source from the content-addressed store, hash-verified

169
170
171def _workflow_run_payload(state: Any) -> dict[str, Any]:
172 """Machine-readable summary of a run/resume outcome."""
173 payload = {
174 "run_id": state.run_id,
175 "workflow_id": state.workflow_id,
176 "status": state.status.value,
177 "current_step_id": state.current_step_id,
178 "current_step_index": state.current_step_index,
179 }
180 gate = _gate_outcome(state)
181 if gate is not None:
182 payload["gate"] = gate
183 return payload
184
185
186def _is_gate_step(step: dict[str, Any]) -> bool:

Callers 3

workflow_runFunction · 0.85
workflow_resumeFunction · 0.85
workflow_statusFunction · 0.85

Calls 1

_gate_outcomeFunction · 0.85

Tested by

no test coverage detected