pub struct Walkthrough {
pub id: String,
pub title: String,
pub author: String,
pub at: u64,
pub stops: Vec<String>,
pub skipped: Option<String>,
pub summary: Option<String>,
pub rev: Option<String>,
pub about: ReviewSource,
}Fields§
§id: String§title: String§at: u64§stops: Vec<String>The comment ids of the stops, in reading order.
skipped: Option<String>One line on what the agent left out and why. Surfaced, never hidden.
summary: Option<String>The walkthrough’s own overview: a markdown body exactly like a stop’s,
shown as the sidebar’s leading slide. None for a walkthrough with no
summary, which leaves the sidebar starting at the first stop.
rev: Option<String>The full oid of HEAD when this walkthrough was published, so its
anchors can be resolved against the code they actually describe once
the checkout moves on. None for a walkthrough saved before this
existed; its anchors resolve against the live worktree.
about: ReviewSourceThe review this walkthrough describes: the working tree, or the commit/range/PR the human had open when it was published. Its diff is what a stop’s anchor resolves against and what opening the walkthrough renders. Defaults to the working tree for a walkthrough saved before this existed, and for a publish with no other review open.
Implementations§
Source§impl Walkthrough
impl Walkthrough
Sourcepub fn notes_by_stop(&self, comments: &[Comment]) -> Vec<Vec<String>>
pub fn notes_by_stop(&self, comments: &[Comment]) -> Vec<Vec<String>>
The notes of each stop, in stop order: every comment of the walkthrough’s own session that names no title (so it is a note, not a stop), carries an anchor of its own (a human comment never does), and whose own anchor falls inside that stop’s region. A note whose region matches more than one stop goes to the first, the way the agent wrote it; one matching none (a stop and its own anchor both absent) is not grouped, though it still exists as a comment.