feat: ship list_pull_requests across all three adapters #2
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/list-pull-requests"
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?
Summary
list_pull_requests— across the CLI, MCP server, and OpenCode plugin.src/core/listPullRequests.ts; each adapter is a thin translation layer.bun run lint,bun run typecheck,bun run test,bun run buildare clean.Why
docs/PRD.mdlistslist_pull_requestsas the first of three PRD capabilities. The hello-world smoke only shippedget_version, which is not in PRD scope.get_versionplumbing, so each commit is reviewable in isolation.Verification
bun run lint— clean.bun run typecheck— clean.bun test— 51 pass / 0 fail / 120 expect() calls across 8 files.bun run build—dist/forgejo-mcpproduced../dist/forgejo-mcp helplists the newlist-pull-requestssubcommand.Out of scope
get_pull_requestandcreate_pull_request(next two PRD operations, separate PRs each).src/shared/cwd.tsis still a stub perdocs/ARCHITECTURE.md:50. The CLI subcommand is flag-only this round.cwd.tsimplementation — same reason.