Document undocumented Forgejo CI log retrieval endpoint in forge_ci skill #20
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
The
forge_ciskill (Section 3 — Log Retrieval) currently states there is no API endpoint to download CI job logs, and recommends workarounds like reproducing locally or using the browser console.Discovery
The Forgejo web UI uses an undocumented internal POST endpoint to fetch job step logs. This endpoint works with token authentication and can be used programmatically:
Where:
run_indexis the human-readable run number (e.g., 620), NOT the internal API IDjob_indexis 0-based (usually 0 for single-job workflows)stepis the 0-based step index within the job{"stepsLog": [{"step": N, "logLines": [...]}]}This was verified on
forge.ourworld.tfwith the current Forgejo version.Task
Update Section 3 of
claude/skills/forge_ci/SKILL.mdto document this endpoint as Option 0 (programmatic, preferred), keeping the existing options as fallbacks.Also update Section 7 (API Gotchas) item 3 to reflect that logs CAN be retrieved programmatically via this internal endpoint.