diff --git a/skills/gitea-fix-ci/SKILL.md b/skills/gitea-fix-ci/SKILL.md index 9f468fc1..d43bddcb 100644 --- a/skills/gitea-fix-ci/SKILL.md +++ b/skills/gitea-fix-ci/SKILL.md @@ -83,8 +83,11 @@ Gitea API from the current workspace. - `GET /api/v1/repos///actions/jobs//logs` - On Gitea 1.21 web fallback, download logs by UI job index: - `GET ///actions/runs//jobs//logs` - - Start with job index `0`; if multiple jobs exist, inspect the run page or - downloaded logs to map the failing job. + - First open the run page and read each job's status; take the index of a + job whose status is `failure`, not index `0` by default. The failing job + is rarely the first one, so a blind index `0` usually returns a passing + job's log. Only fall back to scanning indices when the run page does not + expose per-job status. - Save large logs to a temporary file outside tracked source paths. - Extract the first actionable error block, surrounding command, job name, workflow name, run URL, branch, and SHA.