Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: optional message for issue comments
✗ CI failure Fintan Halpenny committed 3 months ago
commit eccfd6baf3a57448c3ed81569e71a01629efa280
parent c33c26fa78bc80d8bdaf2919f5aed9f36afac0f1
1 failed (1 total) View logs
1 file changed +2 -1
modified crates/radicle-cli/src/commands/issue/args.rs
@@ -310,7 +310,7 @@ pub(crate) struct CommentArgs {
    /// The body of the comment
    #[arg(long, short)]
    #[arg(value_name = "MESSAGE")]
-
    message: Message,
+
    message: Option<Message>,

    /// Optionally, the comment to reply to. If not specified, the comment
    /// will be in reply to the issue itself
@@ -441,6 +441,7 @@ impl From<CommentArgs> for CommentAction {
            edit,
        }: CommentArgs,
    ) -> Self {
+
        let message = message.unwrap_or(Message::Edit);
        match (reply_to, edit) {
            (Some(_), Some(_)) => {
                unreachable!("the argument '--reply-to' cannot be used with '--edit'")