rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwoodd66161a36d45717688cdcda3340d5c6cb8ca93df
{
"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": "9a0d11cbc86a57e3d1e47389f9c0b5a318a1fd02",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"title": "cli: add name to `rad seed` output",
"state": {
"status": "merged",
"conflicts": []
},
"before": "a48081f2717f069d456ec09f31d9e639b232dbed",
"after": "d66161a36d45717688cdcda3340d5c6cb8ca93df",
"commits": [
"d66161a36d45717688cdcda3340d5c6cb8ca93df"
],
"target": "3fc92f83fe089263c470b328414d923227cf0e4a",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "9a0d11cbc86a57e3d1e47389f9c0b5a318a1fd02",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "If the name is available to show for the repository -- it may not be\nif it hasn't been replicated yet -- then add it to the output of the\n`rad seed` command.",
"base": "a48081f2717f069d456ec09f31d9e639b232dbed",
"oid": "d66161a36d45717688cdcda3340d5c6cb8ca93df",
"timestamp": 1709545823
},
{
"id": "7cd04c4ae6019f4dd08ce82c2b7171a1c498f23c",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "Rebase.",
"base": "bb4ed84b951608ee62123be1440c73fe9c646c26",
"oid": "cac6c0aad74a0ea107002c01d302967feacdf6e0",
"timestamp": 1709988361
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "51078148-bb23-4c21-baa7-115a24c98a21"
},
"info_url": "https://cci.rad.levitte.org//51078148-bb23-4c21-baa7-115a24c98a21.html"
}
Started at: 2026-09-08 01:28:12.195393+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/51078148-bb23-4c21-baa7-115a24c98a21/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 189 issues · 38 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 9a0d11cbc86a57e3d1e47389f9c0b5a318a1fd02
✓ Switched to branch patch/9a0d11c at revision 9a0d11c
✓ Branch patch/9a0d11c setup to track rad/patches/9a0d11cbc86a57e3d1e47389f9c0b5a318a1fd02
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout d66161a36d45717688cdcda3340d5c6cb8ca93df
HEAD is now at d66161a3 cli: add name to `rad seed` output
Exit code: 0
$ rad patch show 9a0d11cbc86a57e3d1e47389f9c0b5a318a1fd02 -p
╭────────────────────────────────────────────────────────────────────────────────╮
│ Title cli: add name to `rad seed` output │
│ Patch 9a0d11cbc86a57e3d1e47389f9c0b5a318a1fd02 │
│ Author fintohaps z6Mkire…SQZ3voM │
│ Head d66161a36d45717688cdcda3340d5c6cb8ca93df │
│ Base a48081f2717f069d456ec09f31d9e639b232dbed │
│ Target master │
│ Branches patch/9a0d11c │
│ Commits ahead 1, behind 1584 │
│ Status merged │
│ │
│ If the name is available to show for the repository -- it may not be │
│ if it hasn't been replicated yet -- then add it to the output of the │
│ `rad seed` command. │
├────────────────────────────────────────────────────────────────────────────────┤
│ d66161a cli: add name to `rad seed` output │
├────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision 9a0d11c @ a48081f..d66161a by fintohaps z6Mkire…SQZ3voM 2 years ago │
│ ↑ Revision 7cd04c4 @ bb4ed84..cac6c0a by cloudhead z6MksFq…bS9wzpT 2 years ago │
│ └─ ✓ merged by cloudhead z6MksFq…bS9wzpT │
╰────────────────────────────────────────────────────────────────────────────────╯
commit d66161a36d45717688cdcda3340d5c6cb8ca93df
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Mon Mar 4 09:48:55 2024 +0000
cli: add name to `rad seed` output
If the name is available to show for the repository -- it may not be
if it hasn't been replicated yet -- then add it to the output of the
`rad seed` command.
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
diff --git a/radicle-cli/src/commands/seed.rs b/radicle-cli/src/commands/seed.rs
index e5a121891..15976679c 100644
--- a/radicle-cli/src/commands/seed.rs
+++ b/radicle-cli/src/commands/seed.rs
@@ -6,7 +6,7 @@ use anyhow::anyhow;
use radicle::node::policy;
use radicle::node::policy::Scope;
use radicle::node::Handle;
-use radicle::{prelude::*, Node};
+use radicle::{prelude::*, storage, Node};
use radicle_term::Element as _;
use crate::commands::rad_sync as sync;
@@ -155,25 +155,32 @@ pub fn delete(rid: RepoId, node: &mut Node, profile: &Profile) -> anyhow::Result
pub fn seeding(profile: &Profile) -> anyhow::Result<()> {
let store = profile.policies()?;
+ let storage = &profile.storage;
let mut t = term::Table::new(term::table::TableOptions::bordered());
t.header([
term::format::default(String::from("Repository")),
+ term::format::default(String::from("Name")),
term::format::default(String::from("Policy")),
term::format::default(String::from("Scope")),
]);
t.divider();
- for policy::SeedPolicy {
- rid: id,
- scope,
- policy,
- } in store.seed_policies()?
- {
- let id = id.to_string();
+ for policy::SeedPolicy { rid, scope, policy } in store.seed_policies()? {
+ let id = rid.to_string();
+ let name = storage
+ .repository(rid)
+ .map_err(storage::RepositoryError::from)
+ .and_then(|repo| repo.project().map(|proj| proj.name().to_string()))
+ .unwrap_or_default();
let scope = scope.to_string();
let policy = term::format::policy(&policy);
- t.push([term::format::tertiary(id), policy, term::format::dim(scope)])
+ t.push([
+ term::format::tertiary(id),
+ term::format::tertiary(name),
+ policy,
+ term::format::dim(scope),
+ ])
}
if t.is_empty() {
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 51078148-bb23-4c21-baa7-115a24c98a21 -v /opt/radcis/ci.rad.levitte.org/cci/state/51078148-bb23-4c21-baa7-115a24c98a21/s:/51078148-bb23-4c21-baa7-115a24c98a21/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/51078148-bb23-4c21-baa7-115a24c98a21/w:/51078148-bb23-4c21-baa7-115a24c98a21/w -w /51078148-bb23-4c21-baa7-115a24c98a21/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /51078148-bb23-4c21-baa7-115a24c98a21/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"
}