Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat: make cibool trigger --ref be preferred over --name
Lars Wirzenius committed 1 year ago
commit f814880aeb9a4f9fd6491852aeb57255a55bfb9b
parent b33aae598c7e679f40af9f660efa289675a3d42e
2 files changed +2 -2
modified ci-broker.md
@@ -1701,7 +1701,7 @@ export SRCDIR="$CARGO_MANIFEST_DIR"

	# Trigger a CI run. Hide the event ID that cibtool writes to
    # stdout.
-
	cargo run -q --bin cibtool -- --db "$db" trigger --repo "$REPO" --name main --commit HEAD >/dev/null
+
	cargo run -q --bin cibtool -- --db "$db" trigger --repo "$REPO" --ref main --commit HEAD >/dev/null

	# Run CI on queued events.
	cargo run -q --bin cib -- --config "$config" queued
modified src/bin/cibtoolcmd/trigger.rs
@@ -9,7 +9,7 @@ pub struct TriggerCmd {
    repo: String,

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

    /// Set the commit the event refers to. Can be the SHA1 commit id,