From fa19105f2fddd1b07f79514942eab2976a09d7f1 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 3 Jul 2024 11:31:16 +0100 Subject: [PATCH] cli: add un/resolve for patch review comments Patch review comments can be resolved and unresolved as part of the Patch COB API. This functionality was missing from the `rad patch command`. Add a subcommand `rad patch resolve` which can resolve a review comment, and unresolve given the `--undo` flag. Signed-off-by: Fintan Halpenny X-Clacks-Overhead: GNU Terry Pratchett --- radicle-cli/src/commands/patch.rs | 64 +++++++++++++++++++++++ radicle-cli/src/commands/patch/resolve.rs | 42 +++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 radicle-cli/src/commands/patch/resolve.rs diff --git a/radicle-cli/src/commands/patch.rs b/radicle-cli/src/commands/patch.rs index 541d9b73..ce38d921 100644 --- a/radicle-cli/src/commands/patch.rs +++ b/radicle-cli/src/commands/patch.rs @@ -22,6 +22,8 @@ mod list; mod ready; #[path = "patch/redact.rs"] mod redact; +#[path = "patch/resolve.rs"] +mod resolve; #[path = "patch/review.rs"] mod review; #[path = "patch/show.rs"] @@ -61,6 +63,7 @@ Usage rad patch update [