Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW
✗ CI failure Lorenz Leutgeb committed 7 months ago
commit 07ae911a5dd6d6ea537087ff5969afce91959b33
parent 822f58e60db732b42b2a1890df09fb612b573730
1 failed 1 pending (2 total) View logs
2 files changed +6 -5
modified crates/radicle-cli/src/commands/issue.rs
@@ -45,7 +45,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
    // with the [`EmptyArgs`] provided, if any.
    let command = args
        .command
-
        .unwrap_or_else(|| Command::List(args.empty.unwrap_or_default().into()));
+
        .unwrap_or_else(|| Command::List(args.empty.into()));

    let announce = !args.no_announce && command.should_announce_for();
    let mut issues = term::cob::issues_mut(&profile, &repo)?;
modified crates/radicle-cli/src/commands/issue/args.rs
@@ -61,7 +61,7 @@ pub struct Args {

    /// Arguments for the empty subcommand. Will fallback to [`Command::List`].
    #[clap(flatten)]
-
    pub(crate) empty: Option<EmptyArgs>,
+
    pub(crate) empty: EmptyArgs,
}

/// Commands to create, view, and edit Radicle issues
@@ -212,10 +212,11 @@ impl Command {
/// Arguments for the empty subcommand.
#[derive(Parser, Debug, Default)]
pub(crate) struct EmptyArgs {
-
    /// Filter for the list of issues that are assigned to '<DID>' (default: me)
-
    #[arg(long, name = "DID", hide = true)]
+
    #[arg(long, name = "DID")]
    #[arg(default_missing_value = "me")]
    #[arg(num_args = 0..=1)]
+
    #[arg(hide = true)]
+
    #[allow(clippy::missing_docs_in_private_items)] // flattened
    pub(crate) assigned: Option<Assigned>,

    #[clap(flatten)]
@@ -309,7 +310,7 @@ impl From<EmptyArgs> for ListArgs {
    fn from(args: EmptyArgs) -> Self {
        Self {
            assigned: args.assigned,
-
            state: args.state.into(),
+
            state: ListStateArgs::from(args.state),
        }
    }
}