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 session review-comment views, 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 has an unaddressed reviewer message.
Outdated threads remain actionable because their forge-native thread identifiers survive after their original line anchors become stale. An unresolved thread whose latest comment is an Agentty reply becomes actionable again when a reviewer adds a follow-up comment.
Sourcepub fn is_addressed_by_agentty(&self) -> bool
pub fn is_addressed_by_agentty(&self) -> bool
Returns whether Agentty authored the latest comment on this unresolved thread.
Trait Implementations§
Source§impl Clone for ReviewCommentThread
impl Clone for ReviewCommentThread
Source§impl Debug for ReviewCommentThread
impl Debug for ReviewCommentThread
impl Eq for ReviewCommentThread
Source§impl PartialEq for ReviewCommentThread
impl PartialEq for ReviewCommentThread
impl StructuralPartialEq for ReviewCommentThread
Auto Trait Implementations§
impl Forget for ReviewCommentThread
impl Freeze for ReviewCommentThread
impl Move for ReviewCommentThread
impl RefUnwindSafe for ReviewCommentThread
impl Send for ReviewCommentThread
impl Sync for ReviewCommentThread
impl Unpin for ReviewCommentThread
impl UnsafeUnpin for ReviewCommentThread
impl UnwindSafe for ReviewCommentThread
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.