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.
This commit is contained in:
Fintan Halpenny 2024-08-14 10:08:31 +01:00 committed by cloudhead
parent ab6ca14c88
commit eb432b9bc1
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -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
```

View File

@ -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)?;