Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat: cibtool trigger --ref defaults to main, --commit to HEAD
Lars Wirzenius committed 1 year ago
commit daed76ff4d1db49ddb2554b9901bf0765bebff09
parent f814880aeb9a4f9fd6491852aeb57255a55bfb9b
1 file changed +2 -2
modified src/bin/cibtoolcmd/trigger.rs
@@ -9,13 +9,13 @@ pub struct TriggerCmd {
    repo: String,

    /// Set the name of the ref the event refers to.
-
    #[clap(long = "ref", aliases = ["name"])]
+
    #[clap(long = "ref", aliases = ["name"], default_value = "main")]
    name: String,

    /// Set the commit the event refers to. Can be the SHA1 commit id,
    /// or a symbolic Git revision, as understood by `git rev-parse`.
    /// For example, `HEAD`.
-
    #[clap(long)]
+
    #[clap(long, default_value = "HEAD")]
    commit: String,

    /// Write the event ID to this file, after adding the event to the