feat(pr): add get_pull_request and create_pull_request across all three adapters #3
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pr-get-and-create"
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
get_pull_request(GET .../pulls/{index}) andcreate_pull_request(POST .../pulls) shipped across CLI, MCP, and OpenCode adapter, backed by one core call against the Forgejo REST API.fgj/gh(version,pr list,pr view <n>,pr create); adds-R owner/repo,-s,-t,-b,-H,-Bflags.git remote get-url origin— works in plain checkouts and linked worktrees (where.gitis a file containinggitdir:).confirm/confirm_titlewrite-guard from thecreate_pull_requestsignature (YAGNI).Commits
feat(core): add getPullRequestfeat(core): add createPullRequestfeat(shared): real cwd inference from git origin remote (worktree-aware)feat(cli): restructure to nested subcommands with cwd inference and fgj-style flagsfeat(adapters): wire get_pull_request into MCP and OpenCodefeat(adapters+prd): wire create_pull_request into MCP and OpenCode; drop confirm from PRDBreaking Changes
list-pull-requests->pr list,get-version->version. Newpr view <n>andpr createsubcommands.create_pull_requestno longer takesconfirm: true/confirm_title; the process-level write-guard constraint and success criterion are removed.Verification
bun run lint,bun run typecheck,bun run build,./dist/forgejo-mcp help: green.bun testran withBUN_MAX_WORKERS=1due to sandbox resource limits; CI ondebian-testingruns in parallel.Out of Scope (PRD)
PR diffs, reviews, merge, comments, labels, milestones; issues; repositories; releases; per-process secret ACL.