Skip to main content

parse_review_output

Function parse_review_output 

Source
pub fn parse_review_output(text: &str) -> Result<ReviewOutput>
Expand description

Parse structured review output from the reviewer’s text response.

The JSON may be wrapped in markdown code fences. Returns an error if the output is unparseable – callers should treat this as a review failure, not a clean pass (which could let unreviewed code through to merge).