Skip to main content

run_create_pr

Function run_create_pr 

Source
pub async fn run_create_pr(
    model: Option<String>,
    base_branch: Option<&str>,
    repo_path: Option<&Path>,
) -> Result<CreatePrOutcome>
Expand description

Non-interactive core for omni-dev git branch create pr.

Generates PR title + description via the AI but does NOT push the branch or call gh pr create. The MCP boundary should expose the proposed PR content so the assistant can decide what to do with it; actually pushing a branch or creating a PR is out of scope for a single tool call. This function must produce no stdout output — the MCP server uses stdout for the JSON-RPC protocol.