feat(github): list runs and jobs, stream job logs, edit labels #89
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/85-github-runs-labels"
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?
Summary
On GitHub, the
[3]Actions box can now list a repo's recent workflow runs and their jobs, job logs can be read, and labels can be edited, the same as on Forgejo. Nothing is user-visible until #86 makes GitHub selectable.Refs #85 (part of #83)
Decisions (ADR 0017 updated)
ListRunsreturns the newest 100 runs, which is one request. Core asks with no filter, and a busy GitHub repo has tens of thousands of runs, so returning the whole history would spend hundreds of requests from the rate limit. The design describes the box as "recent workflow runs". This is a deliberate exception to ADR 0006's rule that list methods return everything.SetLabelsmaps label IDs to the names GitHub's API takes. An unknown ID is an error and nothing is sent.Verification
make check(golangci-lint v2.14.0, the version CI pins):shellcheckisn't installed locally. No shell files changed, and CI runs that step.Mutation checks, each reverted afterwards:
ListRunstests failsig=secretJobLogthrough the cacheFixtures were recorded from
cli/cliwithgh apiand trimmed. One hand edit, a run set toqueued, is noted intestdata/README.md. The fixtures contain no tokens.Review
Three fresh reviewers ran: standards, comments and spec. Spec passed.
Fixed:
t.Fatalin handler goroutines and an unclosed log in testslabelshadowingDismissed:
ErrNotFound: that is accurate.-race.I re-checked the fixes myself rather than re-dispatching the reviewers.
Docs
docs/architecture.md: the GitHub runs, jobs and logs rows are verified, the runs row says "newest 100", and there is a labels row. ADR 0017 is updated. No design.md change.🤖 Generated with Claude Code
https://claude.ai/code/session_01QhCwUhPRAFrAziCumaEa67