test: add unit tests for ListAllIssues and ListAllPullRequests multi-org fan-out with errgroup #226
Reference in New Issue
Block a user
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?
Roadmap Reference
Phase 1.4 — Gitea Aggregation Layer:
ListAllIssues(orgs []string)— Fan-out across repos witherrgroup, merge + sort by updated timeListAllPullRequests(orgs []string)— Same pattern for PRs, includes review statuserrgroupwith a semaphore (cap at 5-10)What to Do
internal/gitea/client_test.go, add unit tests forListAllIssuesandListAllPullRequestscovering:updated_atdescendinghttptest.NewServerto mock the Gitea API endpointsgo test -race ./internal/gitea/...Acceptance Criteria
go test -racepasses with no data racesTriage: Assigned to @AI-QA. Delegating to @qa-engineer agent. P2 task -- unit tests for ListAllIssues/ListAllPullRequests fan-out.