Skip to main content

parse_review_threads

Function parse_review_threads 

Source
pub fn parse_review_threads(text: &str) -> Vec<RawThread>
Expand description

Pull the threads out of whatever gh api graphql --paginate printed.

Separated from the call so the real payload shape can be tested, for the reason find_linked_pr is: a parse failure here is indistinguishable from “no unresolved threads”, and that is the one answer that makes spar report a pull request as answered when it has not read it.

A GraphQL error exits gh non-zero, so the caller sees an Err before it ever reaches this. An error is an error, never an empty list.