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:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"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": "919d5c780c4da0b5b9f18f1549bc59dffd7125af",
"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": "0313152c-73b3-43d3-8b5f-7138a8ed3fb9"
},
"info_url": "https://cci.rad.levitte.org//0313152c-73b3-43d3-8b5f-7138a8ed3fb9.html"
}
Started at: 2026-09-07 17:21:31.247211+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/0313152c-73b3-43d3-8b5f-7138a8ed3fb9/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 189 issues · 37 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
$ rad patch show 7f61544c79c74c9fcc135555816c22d2d58d40a4 -p
╭─────────────────────────────────────────────────────────────────────────────────╮
│ Title Handle corner cases of interactively entered commit messages │
│ Patch 7f61544c79c74c9fcc135555816c22d2d58d40a4 │
│ Author spacefrogg z6Mkgfw…iFFBYQp │
│ Head 6f502c904589b71a7ba969f060b8f1279707b30f │
│ Base 137961c1f72a6850325b05e65a232cd202cbd12c │
│ Target master │
│ Branches patch/7f61544 │
│ Commits ahead 1, behind 1612 │
│ Status merged │
│ │
│ 1. Split on double newline fails when description is empty │
│ 2. Title must be a single line │
├─────────────────────────────────────────────────────────────────────────────────┤
│ 6f502c9 Handle corner cases of interactively entered commit messages │
├─────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision 7f61544 @ 137961c..6f502c9 by spacefrogg z6Mkgfw…iFFBYQp 2 years ago │
│ ↑ Revision 07136d1 @ 137961c..6b7898f by fintohaps z6Mkire…SQZ3voM 2 years ago │
│ ↑ Revision 6a656b0 @ 137961c..c094346 by fintohaps z6Mkire…SQZ3voM 2 years ago │
│ └─ ✓ accepted by fintohaps z6Mkire…SQZ3voM 2 years ago │
│ ↑ Revision 38efa3a @ 3ad2b44..f0b8446 by cloudhead z6MksFq…bS9wzpT 2 years ago │
│ └─ ✓ merged by cloudhead z6MksFq…bS9wzpT │
╰─────────────────────────────────────────────────────────────────────────────────╯
commit 6f502c904589b71a7ba969f060b8f1279707b30f
Author: Michael Raitza <michael.raitza@tu-dresden.de>
Date: Tue Feb 13 11:50:37 2024 +0100
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
diff --git a/radicle-cli/src/terminal/patch.rs b/radicle-cli/src/terminal/patch.rs
index 2ee4f1a54..c303128fc 100644
--- a/radicle-cli/src/terminal/patch.rs
+++ b/radicle-cli/src/terminal/patch.rs
@@ -87,12 +87,16 @@ 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 output = match output.split_once("\n\n") {
+ Some((x, y)) => Some((x, y)),
+ None => Some((output.as_str(), "")),
+ };
+ let Some((title, description)) = output else {
+ return Ok(None)
};
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 0313152c-73b3-43d3-8b5f-7138a8ed3fb9 -v /opt/radcis/ci.rad.levitte.org/cci/state/0313152c-73b3-43d3-8b5f-7138a8ed3fb9/s:/0313152c-73b3-43d3-8b5f-7138a8ed3fb9/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/0313152c-73b3-43d3-8b5f-7138a8ed3fb9/w:/0313152c-73b3-43d3-8b5f-7138a8ed3fb9/w -w /0313152c-73b3-43d3-8b5f-7138a8ed3fb9/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /0313152c-73b3-43d3-8b5f-7138a8ed3fb9/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"
}