rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood487ca0a41f24f6c788fa10c2d1b5713e9549316a
{
"request": "trigger",
"version": 1,
"event_type": "patch",
"repository": {
"id": "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5",
"name": "heartwood",
"description": "Radicle Heartwood Protocol & Stack",
"private": false,
"default_branch": "master",
"delegates": [
"did:key:z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT",
"did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz"
]
},
"action": "Created",
"patch": {
"id": "16e6fb0e684f6118cf3cab03d227ca96aa77cb97",
"author": {
"id": "did:key:z6MkoVzHJ2ThYS9gcMZWAtKCZyacJNZGKzpW9u59iBQACBrJ",
"alias": null
},
"title": "Improve `rad init` wording",
"state": {
"status": "merged",
"conflicts": []
},
"before": "9767b485c2aad1e23097d2b5165287ba84cfa452",
"after": "487ca0a41f24f6c788fa10c2d1b5713e9549316a",
"commits": [
"487ca0a41f24f6c788fa10c2d1b5713e9549316a",
"2701a0631bb388fa2b47b0ca9bde797547ac9a49"
],
"target": "7e1cb406bb935c3de008d2171e8961f57b4336ea",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "16e6fb0e684f6118cf3cab03d227ca96aa77cb97",
"author": {
"id": "did:key:z6MkoVzHJ2ThYS9gcMZWAtKCZyacJNZGKzpW9u59iBQACBrJ",
"alias": null
},
"description": "Opening mostly to get familiar with radicle and get some hands on experience. The first commit removes a hardcoded value that was making the tests fail for me and the second improves the `rad init` cli text.",
"base": "9767b485c2aad1e23097d2b5165287ba84cfa452",
"oid": "487ca0a41f24f6c788fa10c2d1b5713e9549316a",
"timestamp": 1708626711
},
{
"id": "9c6c45cffa97d5e00a1959054325bc9c0e2d5bad",
"author": {
"id": "did:key:z6MkoVzHJ2ThYS9gcMZWAtKCZyacJNZGKzpW9u59iBQACBrJ",
"alias": null
},
"description": "Rebase.",
"base": "18fc41c53f181673189dcca0213aafc38229c0f9",
"oid": "ce1e1f71ae7554711f4481faed9b66543434d3f7",
"timestamp": 1710158952
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "79b76d9c-0673-4fc1-8f40-8950361fd3b6"
},
"info_url": "https://cci.rad.levitte.org//79b76d9c-0673-4fc1-8f40-8950361fd3b6.html"
}
Started at: 2026-09-08 23:16:31.840775+02:00
Commands:
$ rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 .
✓ Creating checkout in ./...
✓ Remote cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT added
✓ Remote-tracking branch cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/master created for z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT
✓ Remote fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM added
✓ Remote-tracking branch fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/master created for z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM
✓ Remote lorenz@z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz added
✓ Remote-tracking branch lorenz@z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz/master created for z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz
✓ Repository successfully cloned under /opt/radcis/ci.rad.levitte.org/cci/state/79b76d9c-0673-4fc1-8f40-8950361fd3b6/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 189 issues · 39 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 16e6fb0e684f6118cf3cab03d227ca96aa77cb97
✓ Switched to branch patch/16e6fb0 at revision 16e6fb0
✓ Branch patch/16e6fb0 setup to track rad/patches/16e6fb0e684f6118cf3cab03d227ca96aa77cb97
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 487ca0a41f24f6c788fa10c2d1b5713e9549316a
HEAD is now at 487ca0a4 cli: Improve `rad init` wording
Exit code: 0
$ rad patch show 16e6fb0e684f6118cf3cab03d227ca96aa77cb97 -p
╭──────────────────────────────────────────────────────────────────────────────────╮
│ Title Improve `rad init` wording │
│ Patch 16e6fb0e684f6118cf3cab03d227ca96aa77cb97 │
│ Author z6MkoVz…BQACBrJ │
│ Head 487ca0a41f24f6c788fa10c2d1b5713e9549316a │
│ Base 9767b485c2aad1e23097d2b5165287ba84cfa452 │
│ Target master │
│ Branches patch/16e6fb0 │
│ Commits ahead 2, behind 1611 │
│ Status merged │
│ │
│ Opening mostly to get familiar with radicle and get some hands on experience. │
│ The first commit removes a hardcoded value that was making the tests fail for me │
│ and the second improves the `rad init` cli text. │
├──────────────────────────────────────────────────────────────────────────────────┤
│ 487ca0a cli: Improve `rad init` wording │
│ 2701a06 tests: Remove hardcoded value from rad-inbox.md │
├──────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision 16e6fb0 @ 9767b48..487ca0a by z6MkoVz…BQACBrJ 2 years ago │
│ ↑ Revision 9c6c45c @ 18fc41c..ce1e1f7 by cloudhead z6MksFq…bS9wzpT 2 years ago │
│ └─ ✓ merged by cloudhead z6MksFq…bS9wzpT │
╰──────────────────────────────────────────────────────────────────────────────────╯
commit 487ca0a41f24f6c788fa10c2d1b5713e9549316a
Author: josibake <josibake@protonmail.com>
Date: Wed Feb 21 16:20:39 2024 +0100
cli: Improve `rad init` wording
If the user passes a <path> argument to init, it is incorrect and a
bit confusing to reference the "current directory" or "this directory"
e.g. "run rad . in current directory" when the repo was not created in the
current directory and was created with a path argument instead.
Use the path provided by the user in help text, otherwise reference
the current directory.
diff --git a/radicle-cli/examples/rad-init-no-git.md b/radicle-cli/examples/rad-init-no-git.md
index 3b9b8bb04c..505c426a86 100644
--- a/radicle-cli/examples/rad-init-no-git.md
+++ b/radicle-cli/examples/rad-init-no-git.md
@@ -3,7 +3,7 @@ it will fail:
``` (fail)
$ rad init
-✗ Error: a Git repository was not found at the current path
+✗ Error: a Git repository was not found at the given path
```
Ok so let's initialize one.
diff --git a/radicle-cli/src/commands/init.rs b/radicle-cli/src/commands/init.rs
index 20402ac6da..8b7659531d 100644
--- a/radicle-cli/src/commands/init.rs
+++ b/radicle-cli/src/commands/init.rs
@@ -196,7 +196,7 @@ pub fn init(options: Options, profile: &profile::Profile) -> anyhow::Result<()>
let repo = match git::Repository::open(&path) {
Ok(r) => r,
Err(e) if radicle::git::ext::is_not_found_err(&e) => {
- anyhow::bail!("a Git repository was not found at the current path")
+ anyhow::bail!("a Git repository was not found at the given path")
}
Err(e) => return Err(e.into()),
};
@@ -320,8 +320,13 @@ pub fn init(options: Options, profile: &profile::Profile) -> anyhow::Result<()>
term::format::dim("(RID)"),
term::format::highlight(rid.urn())
);
+ let directory = if path == cwd {
+ term::format::tertiary("this directory").to_string()
+ } else {
+ term::format::tertiary(path.display()).to_string()
+ };
term::info!(
- "You can show it any time by running {} from this directory.",
+ "You can show it any time by running {} from {directory}.",
term::format::command("rad .")
);
term::blank();
commit 2701a0631bb388fa2b47b0ca9bde797547ac9a49
Author: josibake <josibake@protonmail.com>
Date: Wed Feb 21 16:35:03 2024 +0100
tests: Remove hardcoded value from rad-inbox.md
Using a hardcoded value here causes the test to fail when run on a
different machine.
Use a place holder, instead.
diff --git a/radicle-cli/examples/rad-inbox.md b/radicle-cli/examples/rad-inbox.md
index fb75d4f3ef..95069377b6 100644
--- a/radicle-cli/examples/rad-inbox.md
+++ b/radicle-cli/examples/rad-inbox.md
@@ -21,7 +21,7 @@ $ rad inbox --sort-by id
╭──────────────────────────────────────────────────────────────────────╮
│ heartwood │
├──────────────────────────────────────────────────────────────────────┤
-│ 001 ● 58fff44 No license file issue open bob now │
+│ 001 ● [ ... ] No license file issue open bob now │
│ 002 ● bob/copy Change copyright branch created bob now │
╰──────────────────────────────────────────────────────────────────────╯
```
@@ -31,12 +31,12 @@ $ rad inbox --all --sort-by id
╭────────────────────────────────────────────────────────────────╮
│ radicle-git │
├────────────────────────────────────────────────────────────────┤
-│ 003 ● 4dd5843 Copyright fixes patch open bob now │
+│ 003 ● [ ... ] Copyright fixes patch open bob now │
╰────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────────────╮
│ heartwood │
├──────────────────────────────────────────────────────────────────────┤
-│ 001 ● 58fff44 No license file issue open bob now │
+│ 001 ● [ ... ] No license file issue open bob now │
│ 002 ● bob/copy Change copyright branch created bob now │
╰──────────────────────────────────────────────────────────────────────╯
```
@@ -67,7 +67,7 @@ $ rad inbox list --sort-by id
╭──────────────────────────────────────────────────────────────────────╮
│ heartwood │
├──────────────────────────────────────────────────────────────────────┤
-│ 001 ● 58fff44 No license file issue open bob now │
+│ 001 ● [ ... ] No license file issue open bob now │
│ 002 bob/copy Change copyright branch created bob now │
╰──────────────────────────────────────────────────────────────────────╯
```
@@ -93,7 +93,7 @@ $ rad inbox --all
╭────────────────────────────────────────────────────────────────╮
│ radicle-git │
├────────────────────────────────────────────────────────────────┤
-│ 003 ● 4dd5843 Copyright fixes patch open bob now │
+│ 003 ● [ ... ] Copyright fixes patch open bob now │
╰────────────────────────────────────────────────────────────────╯
```
Exit code: 0
shell: 'cargo --version rustc --version cargo fmt --check cargo clippy --all-targets --workspace -- --deny clippy::all cargo build --all-targets --workspace cargo doc --workspace cargo test --workspace --no-fail-fast '
Commands:
$ podman run --name 79b76d9c-0673-4fc1-8f40-8950361fd3b6 -v /opt/radcis/ci.rad.levitte.org/cci/state/79b76d9c-0673-4fc1-8f40-8950361fd3b6/s:/79b76d9c-0673-4fc1-8f40-8950361fd3b6/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/79b76d9c-0673-4fc1-8f40-8950361fd3b6/w:/79b76d9c-0673-4fc1-8f40-8950361fd3b6/w -w /79b76d9c-0673-4fc1-8f40-8950361fd3b6/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /79b76d9c-0673-4fc1-8f40-8950361fd3b6/s/script.sh
+ cargo --version
info: syncing channel updates for '1.74-x86_64-unknown-linux-gnu'
info: latest update on 2023-12-07, rust version 1.74.1 (a28077b28 2023-12-04)
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: installing component 'cargo'
info: installing component 'rust-std'
info: installing component 'rustc'
cargo 1.74.1 (ecb9851af 2023-10-18)
+ rustc --version
rustc 1.74.1 (a28077b28 2023-12-04)
+ cargo fmt --check
error: 'cargo-fmt' is not installed for the toolchain '1.74-x86_64-unknown-linux-gnu'.
To install, run `rustup component add --toolchain 1.74-x86_64-unknown-linux-gnu rustfmt`
Exit code: 1
{
"response": "finished",
"result": "failure"
}