From eb432b9bc1324d05e3a6c2a1ca6d2c077542395c Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 14 Aug 2024 10:08:31 +0100 Subject: [PATCH] cli: announce on issue edit and comment The `rad issue edit` and `rad issue comment` subcommands were not included in the announce check. Since these are considered write commands, they should also announce when executed. --- radicle-cli/examples/workflow/3-issues.md | 2 +- radicle-cli/src/commands/issue.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/radicle-cli/examples/workflow/3-issues.md b/radicle-cli/examples/workflow/3-issues.md index c53b3eb4..895246c1 100644 --- a/radicle-cli/examples/workflow/3-issues.md +++ b/radicle-cli/examples/workflow/3-issues.md @@ -31,6 +31,6 @@ found an important detail about the car's power requirements. It will help whoever works on a fix. ``` -$ rad issue comment 9037b7a42323d4b79e6a48b7d05d3bbaae11d69b --message 'The flux capacitor needs 1.21 Gigawatts' -q +$ rad issue comment 9037b7a42323d4b79e6a48b7d05d3bbaae11d69b --message 'The flux capacitor needs 1.21 Gigawatts' -q --no-announce 400cb155f512b4880858bb05f935104c34167b28 ``` diff --git a/radicle-cli/src/commands/issue.rs b/radicle-cli/src/commands/issue.rs index 2891b621..08220e89 100644 --- a/radicle-cli/src/commands/issue.rs +++ b/radicle-cli/src/commands/issue.rs @@ -447,6 +447,8 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> { | Operation::Delete { .. } | Operation::Assign { .. } | Operation::Label { .. } + | Operation::Edit { .. } + | Operation::Comment { .. } ); let mut issues = profile.issues_mut(&repo)?;