Annotate pipelines with live run status/history from the Woodpecker API #4
Notifications
Due Date
No due date set.
Blocks
Reference: oleks/pipetree#4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SPEC.md roadmap item 3 — the single biggest gap per review feedback on
commit
4b5b336: pipetree is pure structure today (files on disk only),so it can't say which pipelines are broken, redundant, or stale.
Pull last-run status per pipeline file via the Woodpecker HTTP API (the
same one
woodpecker-cli/cluster:ci-agentuse — seeSPEC.md)
and annotate the tree: last status, last run time, "hasn't run in N days".
This is what turns pipetree from a topology browser into a CI health tool.
Design note: this needs a repo -> Woodpecker-repo mapping (owner/name is
probably sufficient given the fleet's naming) and a server URL/token,
which up to now pipetree hasn't needed at all (pure filesystem tool) — worth
deciding whether this is a separate
pipetree healthsubcommand vs. a flagon the main scan, so the offline/no-network path stays fast and simple by
default.
Acceptance criteria
woodpecker-cli'sWOODPECKER_SERVER/WOODPECKER_TOKENconvention where reasonable, for muscle-memory consistency)Resolved by
2f13297(v0.3 batch push). Design decision: -health flag, not a subcommand (see SPEC.md). Bug found+fixed during verification: initial lookup used pl.Name ("default") instead of Woodpecker's real runtime workflow name ("woodpecker", per SanitizePath) - added parse.WorkflowName, re-verified live against both oleks/pipetree (single-file) and oleks/builder-arbitrage (multi-file).