Skip to main content

Module command

Module command 

Source
Expand description

PR comment commands (T3.9): /review, /ask <question>, and /describe.

A single entry point — run_command — lets a bot binary route any recognized comment command through the core without wiring each one itself. parse_command turns a raw comment body into a Command; the caller is responsible for the gating that’s cheap to do provider-side (the event is a newly-created comment on a PR).

Structs§

CommandOutcome
What a command run did, for the caller to log.

Enums§

Command
A recognized PR comment command.

Functions§

merge_description
Merge a freshly-generated description into an existing PR body.
parse_command
Parse a comment body into a Command, or None if it isn’t one.
run_command
Execute a parsed command end-to-end.
run_command_with
Like run_command but with a caller-supplied ReviewBackend, so /review, /ask, and /describe all run on the same backend (e.g. an agent CLI) instead of always OpenRouter.