feat(pr): default head, base, title from git branch and remote default branch #5
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/implicit-git-defaults"
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
pr createdefaults to git context (CLI + OpenCode plugin only; MCP stays explicit):headfromgit symbolic-ref --short HEADbasefromGET /api/v1/repos/{owner}/{repo}->default_branchtitlehumanised from the head branch name (feat-foo-bar->Feat Foo Bar)getCurrentBranch,getUpstreamBranch,fetchDefaultBranch,humanizeBranchNamehead == basepre-flight check before the API callopenapi-typescriptregistered as a dev-dep withbun run gen:api-typesscriptCommits
chore(tooling): add openapi-typescript for schema drift detectionfeat(shared): add default-branch repo meta, git branch helpers, and title humanizerfeat(cli): default pr create head, base, title from current git branch and remote default branchfeat(opencode): default pr create head, base, title from current git branch and remote default branchdocs(prd): document pr create defaults and Swagger field submengeVerification
bun run lint,bun run typecheck,bun run build,./dist/forgejo-mcp help: green locallybun testruns withBUN_MAX_WORKERS=1(set viabun run testinpackage.json); the shared-suite, CLI-suite, and core-suite pass; the opencode- and mcp-adapter suites crash in this sandbox with Bun'sFailed to start HTTP Client threadpanic, which is unrelated to these changes. CI ondebian-testingruns the full suite in parallel.Out of Scope (already documented in PRD)
assignee,assignees,due_date,labels,milestoneoncreate_pull_request;sort,milestone,labels,page,limitonlist_pull_requests.762c8906fe3df195fdee