246: Batch --scan support for GitLab (GitLabIssueClient.listIssues + per-platform scan wiring) #295
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/issue-246/batch-scan-support-for-gitlab-gitlabissueclient-li"
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?
246: Batch --scan support for GitLab (GitLabIssueClient.listIssues + per-platform scan wiring)
Implements 246.
Generated in 13m 32s.
Review findings
Now let's fix both docs, and address the Low finding (unused
clientvariable).Now the Low finding in the test file — remove the unusedclientlocal.Malformed JSON from my typo. Let me redo correctly.Now let's leave the Low duplication finding unresolved (out of scope, too risky for single pass). Run the gates.Build passes. Now lint:Lint clean. Now tests:All 144 test files / 2070 tests pass, build and lint are clean.All fixes applied and gates pass. Both Medium findings resolved; the Low duplication finding is deliberately left as a future-refactor note (out of scope for a single pass); the Lowvoid clientfinding was fixed.Review Findings — 246
Summary
Fixed both Medium documentation-staleness findings: updated README.md and docs/design-batch.md to say "Forgejo and GitLab" instead of "Forgejo only", matching the AGENTS.md wording already updated in the implementation. Also fixed the Low finding about the unused
clientlocal in the new test file by removing the dead instance and itsvoidno-op. Left the remaining Low finding (duplicatedextractPriority/pagination logic between Forgejo and GitLab clients) unresolved — it's an intentional, documented convention per the implementation plan and extracting a shared helper is a larger refactor better done when a third platform needs it, not a single-pass fix. Re-ran build (tsc), lint (eslint), and test (144 files / 2070 tests) — all green with no regressions.Critical
(none)
High
(none)
Medium
AGENTS.mdto "Forgejo and GitLab", leaving README.md stale/contradictory (in-scope for docs sync:README.mdis a default docs-stage path, not underdocs/reference/**). Suggested fix: update the sentence to "(Forgejo and GitLab)" to matchAGENTS.md.GitLabIssueClientimplementsIssueListClient. Suggested fix: update to "(Forgejo and GitLab)" or drop the platform-specific parenthetical and point to the per-client implementations.Low
extractPriority,PRIORITY_RANKING, and the pagination-loop/termination logic are duplicated verbatim between the Forgejo and GitLab clients (pre-existing pattern, intentionally mirrored per the implementation plan). Suggested fix: consider extracting a sharedsrc/shared/issueList/helper (e.g.extractPriorityFromLabels) the next time a third platform needsIssueListClient, to avoid a third copy of the same logic.void client;is used only to silence an unused-variable warning for a throwaway client instance created solely to exercisehttpFetchconstruction; the client itself is never used for an assertion. Suggested fix: drop the unusedclientlocal entirely (theopenClient/closedClient/allClientinstances already cover the assertions) rather than keeping it around with avoidno-op.