Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat(src/bin/cibtool.rs)! make --id option to "run add" optional
Lars Wirzenius committed 1 year ago
commit 6dadbcd27de1eea3e06421db734699e6714dc23c
parent a4a03b414af62570e1cf300030cf1a51ada01531
1 file changed +6 -3
modified src/bin/cibtool.rs
@@ -551,9 +551,9 @@ enum RunSubCmd {

#[derive(Parser)]
struct AddRun {
-
    /// Set the run ID.
+
    /// Set the adapter run ID.
    #[clap(long)]
-
    id: RunId,
+
    id: Option<RunId>,

    /// Set alias of node that performed the CI run.
    #[clap(long)]
@@ -617,7 +617,10 @@ impl AddRun {
            who: self.who.clone(),
        };
        let mut run = Run::new(self.repo, &self.alias, whence, self.timestamp.clone());
-
        run.set_adapter_run_id(RunId::default());
+

+
        let id = self.id.clone().unwrap_or_default();
+
        run.set_adapter_run_id(id);
+

        if let Some(url) = &self.url {
            run.set_adapter_info_url(url);
        }