Skip to main content

run_command

Function run_command 

Source
pub async fn run_command(
    cfg: &Config,
    provider_name: &str,
    repo: &str,
    pr: u64,
    cmd: Command,
) -> Result<CommandOutcome>
Expand description

Execute a parsed command end-to-end.

/review delegates to [run_review] (with an instant “Reviewing…” placeholder). /ask and /describe fetch the diff, respect a per-repo .prbot.toml, and post their result.

§Errors

On unknown provider, or any provider/LLM API failure.