(raw: dict)
| 134 | |
| 135 | |
| 136 | def _run_from_raw(raw: dict) -> RunSummary | None: |
| 137 | created = parse_iso(raw.get("created_at")) |
| 138 | if created is None: |
| 139 | return None |
| 140 | return RunSummary( |
| 141 | id=raw["id"], |
| 142 | created_at=created, |
| 143 | run_started_at=parse_iso(raw.get("run_started_at")), |
| 144 | updated_at=parse_iso(raw.get("updated_at")) or created, |
| 145 | conclusion=raw.get("conclusion"), |
| 146 | event=raw.get("event", ""), |
| 147 | ) |
| 148 | |
| 149 | |
| 150 | def fetch_runs(workflow: str, since: dt.datetime) -> list[RunSummary]: |
no test coverage detected