diff --git a/radicle/src/cob/patch.rs b/radicle/src/cob/patch.rs index 00a67664..6425152b 100644 --- a/radicle/src/cob/patch.rs +++ b/radicle/src/cob/patch.rs @@ -1462,6 +1462,11 @@ impl Revision { &self.discussion } + /// Review comments resolved by this revision. + pub fn resolves(&self) -> &BTreeSet<(EntryId, CommentId)> { + &self.resolves + } + /// Iterate over all top-level replies. pub fn replies(&self) -> impl Iterator)> { self.discussion.comments() @@ -1654,6 +1659,11 @@ impl Review { self.comments.comments() } + /// Review labels. + pub fn labels(&self) -> impl Iterator { + self.labels.iter() + } + /// Review general comment. pub fn summary(&self) -> Option<&str> { self.summary.as_deref()