rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwoodc09434626a8f1bb8c8c778127e7bb02f41b93171
{
"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:z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW",
"did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"did:key:z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz",
"did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz"
]
},
"action": "Created",
"patch": {
"id": "7f61544c79c74c9fcc135555816c22d2d58d40a4",
"author": {
"id": "did:key:z6Mkgfwr3p56v3hg1qwZaVj5UHYoaVEQoVWV23mo2iFFBYQp",
"alias": "spacefrogg"
},
"title": "Handle corner cases of interactively entered commit messages",
"state": {
"status": "merged",
"conflicts": []
},
"before": "137961c1f72a6850325b05e65a232cd202cbd12c",
"after": "c09434626a8f1bb8c8c778127e7bb02f41b93171",
"commits": [
"c09434626a8f1bb8c8c778127e7bb02f41b93171"
],
"target": "6cfed884bf37cba1e0d8e97fa8b0e94df4a04b1f",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "7f61544c79c74c9fcc135555816c22d2d58d40a4",
"author": {
"id": "did:key:z6Mkgfwr3p56v3hg1qwZaVj5UHYoaVEQoVWV23mo2iFFBYQp",
"alias": "spacefrogg"
},
"description": "1. Split on double newline fails when description is empty\n2. Title must be a single line",
"base": "137961c1f72a6850325b05e65a232cd202cbd12c",
"oid": "6f502c904589b71a7ba969f060b8f1279707b30f",
"timestamp": 1707821662
},
{
"id": "07136d102e5ebf1c643fd4012f76e5b5cf380198",
"author": {
"id": "did:key:z6Mkgfwr3p56v3hg1qwZaVj5UHYoaVEQoVWV23mo2iFFBYQp",
"alias": "spacefrogg"
},
"description": "Changes:\n- simplify checking for title and description",
"base": "137961c1f72a6850325b05e65a232cd202cbd12c",
"oid": "6b7898f8219baf4a552c60b190377a8d8ffa419c",
"timestamp": 1707824871
},
{
"id": "6a656b01294af6796e0a6b9c6d16fb1b0cd0e0d8",
"author": {
"id": "did:key:z6Mkgfwr3p56v3hg1qwZaVj5UHYoaVEQoVWV23mo2iFFBYQp",
"alias": "spacefrogg"
},
"description": "Changes:\n- actually use `-a` with `git commit` :)",
"base": "137961c1f72a6850325b05e65a232cd202cbd12c",
"oid": "c09434626a8f1bb8c8c778127e7bb02f41b93171",
"timestamp": 1707824952
},
{
"id": "38efa3a2e1e81ff276f0e56cba6d2cb9b6f5df7f",
"author": {
"id": "did:key:z6Mkgfwr3p56v3hg1qwZaVj5UHYoaVEQoVWV23mo2iFFBYQp",
"alias": "spacefrogg"
},
"description": "Rebase.",
"base": "3ad2b4431f4406fbb96c30d1edc77c5d969f17cb",
"oid": "f0b8446515f043156589ac9db8f3a635938efe5f",
"timestamp": 1710254672
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "49ff9a6f-8529-4faa-a0ee-c0f01a60c6bb"
},
"info_url": "https://cci.rad.levitte.org//49ff9a6f-8529-4faa-a0ee-c0f01a60c6bb.html"
}
Started at: 2025-10-21 17:36:22.287462+02:00
Commands:
$ rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 .
✓ Creating checkout in ./...
✓ Remote cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT added
✓ Remote-tracking branch cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/master created for z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT
✓ Remote cloudhead@z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW added
✓ Remote-tracking branch cloudhead@z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW/master created for z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW
✓ Remote fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM added
✓ Remote-tracking branch fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/master created for z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM
✓ Remote erikli@z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz added
✓ Remote-tracking branch erikli@z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz/master created for z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz
✓ 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/49ff9a6f-8529-4faa-a0ee-c0f01a60c6bb/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 125 issues · 15 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 7f61544c79c74c9fcc135555816c22d2d58d40a4
✓ Switched to branch patch/7f61544 at revision 7f61544
✓ Branch patch/7f61544 setup to track rad/patches/7f61544c79c74c9fcc135555816c22d2d58d40a4
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout c09434626a8f1bb8c8c778127e7bb02f41b93171
HEAD is now at c0943462 cli: Handle corner cases of interactively entered commit messages
Exit code: 0
$ git show c09434626a8f1bb8c8c778127e7bb02f41b93171
commit c09434626a8f1bb8c8c778127e7bb02f41b93171
Author: Michael Raitza <michael.raitza@tu-dresden.de>
Date: Tue Feb 13 11:50:37 2024 +0100
cli: Handle corner cases of interactively entered commit messages
1. Split on double newline fails when description is empty
2. Title must be a single line
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
diff --git a/radicle-cli/src/terminal/patch.rs b/radicle-cli/src/terminal/patch.rs
index 2ee4f1a5..0db0f040 100644
--- a/radicle-cli/src/terminal/patch.rs
+++ b/radicle-cli/src/terminal/patch.rs
@@ -87,12 +87,13 @@ impl Message {
placeholder.push_str(help);
let output = Self::Edit.get(&placeholder)?;
- let Some((title, description)) = output.split_once("\n\n") else {
- return Ok(None);
+ let (title, description) = match output.split_once("\n\n") {
+ Some((x, y)) => (x, y),
+ None => (output.as_str(), ""),
};
let (title, description) = (title.trim(), description.trim());
- if title.is_empty() {
+ if title.is_empty() | title.contains('\n') {
return Ok(None);
}
Ok(Some((title.to_owned(), description.to_owned())))
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 49ff9a6f-8529-4faa-a0ee-c0f01a60c6bb -v /opt/radcis/ci.rad.levitte.org/cci/state/49ff9a6f-8529-4faa-a0ee-c0f01a60c6bb/s:/49ff9a6f-8529-4faa-a0ee-c0f01a60c6bb/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/49ff9a6f-8529-4faa-a0ee-c0f01a60c6bb/w:/49ff9a6f-8529-4faa-a0ee-c0f01a60c6bb/w -w /49ff9a6f-8529-4faa-a0ee-c0f01a60c6bb/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:bookworm bash /49ff9a6f-8529-4faa-a0ee-c0f01a60c6bb/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"
}