fn comment_anchor_parts(
db: &Db,
project: &str,
branch: &str,
comment_id: &str,
) -> Result<(ReviewThread, Vec<ReviewSet>), String>Expand description
The thread a reply or resolve names, and the branch’s reviews: the parts an anchor echo is built from. Read before the write, so a failure cannot make a landed write look failed - and both calls double as the “no such comment” check, whose error the result would otherwise only surface as a missing thread.