fix(ci): render Forgejo's bare job array #42
No reviewers
Labels
No labels
area/dsh
area/forgejo
experiment
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-gitea!42
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/qa-ci-jobs-array"
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?
What
Follow-up to #41.
gitea_ci action:"jobs"returnedNo CI runs.because Forgejo's jobs endpoint returns a bareActionRunJob[](routers/api/v1/repo/action.go→ctx.JSON(200, response)), and the object-shaped CI branch intercepted arrays before the generic array formatter.The CI formatter now handles the bare array: it detects job rows (
name+ nohead_sha) and printsCI Jobs (N); a runs-shaped array still printsCI Runs.Verification
test/qa-formatters.test.mjs20 tests, full suite 131/131, leak scan + syntax clean.gitea_ci {action:"jobs", run_id:77}→CI Jobs (1): #78 check [success].Refs #26 (the issue stays open until the whole formatter batch is closed).