pub struct ReviewCommentThread {
pub anchor_side: ReviewCommentAnchorSide,
pub comments: Vec<ReviewComment>,
pub id: String,
pub is_outdated: Option<bool>,
pub is_resolved: bool,
pub line: Option<u32>,
pub path: String,
pub start_line: Option<u32>,
}Expand description
One review thread anchored to a line of the review request diff.
Threads group chronological comments that share the same anchor. Agentty
renders these in requested-review detail, grouped by file and sorted by
(path, line) before display. Session-linked review workflows also use the
native id to reply and resolve a thread after its fix is pushed.
Fields§
§anchor_side: ReviewCommentAnchorSideDiff side used with line when placing this thread inline.
comments: Vec<ReviewComment>Chronological reviewer comments attached to this thread.
id: StringOpaque forge-native thread identifier used for replies and resolution.
is_outdated: Option<bool>Whether newer changes made the thread’s original diff position stale, when the forge exposes that state.
is_resolved: boolWhether the thread has been marked resolved on the forge.
line: Option<u32>Anchor line number on anchor_side, when the forge exposes one.
path: StringFile path the thread is anchored to, relative to the repository root.
start_line: Option<u32>Optional first line for a multi-line thread on anchor_side.
Implementations§
Source§impl ReviewCommentThread
impl ReviewCommentThread
Sourcepub fn is_actionable(&self) -> bool
pub fn is_actionable(&self) -> bool
Returns whether this thread is unresolved and still anchored to the current review diff.
Trait Implementations§
Source§impl Clone for ReviewCommentThread
impl Clone for ReviewCommentThread
Source§fn clone(&self) -> ReviewCommentThread
fn clone(&self) -> ReviewCommentThread
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more