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§
- Command
Outcome - 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, orNoneif it isn’t one. - run_
command - Execute a parsed command end-to-end.
- run_
command_ with - Like
run_commandbut with a caller-suppliedReviewBackend, so/review,/ask, and/describeall run on the same backend (e.g. an agent CLI) instead of always OpenRouter.