feat(actions): fetch run logs via forgejo-api REST #77
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/FJ-22-actions-logs-via-api"
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?
fj actions logspreviously reached Forgejo's web routes with a bespoke reqwest client infj-clientbecause/api/v1exposed no action-log endpoint (shipped that way under the earlier duplicate FJ-36). Forgejo 16 now serves the logs over REST andforgejo-api0.11.0 binds them, so the raw-HTTP workaround is no longer needed and this issue's AC that the fetch go throughforgejo-api(not a hand-rolled transport) can be met.Bump
forgejo-apito 0.11.0 across the workspace and reimplementaction_run_logsinfj-coreas a thin wrapper over the client: resolve the per-repo run number to the run's internal id vialist_action_runs(run_number=...)(the job and log endpoints key on the internal id, not the per-repo index), enumerate jobs withlist_action_run_jobs, then fetch each job's plaintext log withrepo_get_action_job_logs. A job that never started 404s and is treated as an empty log, matching the prior behavior. The binary keeps all rendering and now delegates with the sharedForgejoclient instead of host URL plus token.Remove the
fj-clientweb-route logs module and its re-export;web.rsstays because artifacts and attachments still use it. The 0.11.0 bump adds aCommitStatusState::Skippedvariant, so the commit-status renderer gains askippedarm. Update the stale doc cross-references and the version note that the bump touches.#FJ-22
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com