Context
Found by the repo-wide /code-tidying:batch-simplify sweep (62 groups / 986 files, branch claude/repo-code-tidying-batch-twhddw). The sweep's doctrine files latent defects instead of fixing them mid-sweep, because the fix changes observable behavior; this issue is that filing.
The gitea adapter's label walk treats any 200 body as iterable; a non-array 200 (proxy error page, auth redirect body) is silently accepted, yielding an empty/garbage label set instead of an error.
Proposed work
- Type-check the decoded response (jq 'type == "array"') and fail closed otherwise.
Acceptance criteria
References
plugins/work-items/tools/work-item-tracker/adapters/gitea/common.sh
Filed by the /code-tidying:batch-simplify closeout (Phase 8).
Context
Found by the repo-wide
/code-tidying:batch-simplifysweep (62 groups / 986 files, branchclaude/repo-code-tidying-batch-twhddw). The sweep's doctrine files latent defects instead of fixing them mid-sweep, because the fix changes observable behavior; this issue is that filing.The gitea adapter's label walk treats any 200 body as iterable; a non-array 200 (proxy error page, auth redirect body) is silently accepted, yielding an empty/garbage label set instead of an error.
Proposed work
Acceptance criteria
References
plugins/work-items/tools/work-item-tracker/adapters/gitea/common.shFiled by the /code-tidying:batch-simplify closeout (Phase 8).