ops forgejo actions: add task list/view/logs verbs #109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Problem
coily ops forgejohas wrappers forissue,pr,label,release,repo, plus the in-pod CLI foradminanddoctor- but nothing for the Actions surface. When a CI job fails (most recentlybump-formulaon every release, tracked at #107), there's no audited path to read the failure log. The current workaround is barekubectl execinto the forgejo pod, which is denied at the lockdown layer, plus auto-mode safety walls when reaching for credentials.Scope
Add
coily ops forgejo actionswith three leaves, all HTTP API calls reusing the existingforgejoAPIDotoken path:coily ops forgejo actions task list --repo <owner/name> [--limit N]- list recent action tasks (workflow runs). Maps to the existing/api/v1/repos/{owner}/{repo}/actions/tasksendpoint.coily ops forgejo actions task view --repo <owner/name> --id <task_id>- inspect one task's metadata.coily ops forgejo actions task logs --repo <owner/name> --id <task_id>- print the task's log to stdout. Forgejo stores logs zstd-compressed under/var/lib/gitea/actions_log/<owner>/<repo>/<hex>/<id>.log.zstin the forgejo pod. Implementation: ssh to kai-server,kubectl cpthe log file out,zstdcaton kai-server, stream stdout back. Same audited remote-exec shape as the rest ofops forgejoadmin verbs.Why a coily verb, not bare API access
Every coilysiren CI failure investigation needs this. Without it, agents either fall back to noisy diagnosis paths (kubectl, raw curl with PAT) or hit safety walls. With it, "look at why job N failed" is one audited verb away.
Out of scope
Acceptance
coily ops forgejo actions task logs --repo coilysiren/coily --id 97prints the bump-formula failure log for the most recent failing run, ungated.