nikivdev/code · error
missing PR title in edit file (expected a non-empty line und
Error message
missing PR title in edit file (expected a non-empty line under `# Title`)
What it means
Error "missing PR title in edit file (expected a non-empty line under `# Title`)" thrown in nikivdev/code.
Source
Thrown at src/commit.rs:11612
// Skip leading blank lines in description.
while let Some(nl) = lines.peek() {
if nl.trim().is_empty() {
lines.next();
} else {
break;
}
}
// Collect remainder verbatim.
for rest in lines {
desc_lines.push(rest.to_string());
}
break;
}
}
let title = title.unwrap_or_default().trim().to_string();
if title.is_empty() {
bail!("missing PR title in edit file (expected a non-empty line under `# Title`)");
}
let body = desc_lines.join("\n").trim_end().to_string();
Ok((title, body))
}
fn render_pr_edit_markdown(title: &str, body: &str) -> String {
let mut out = String::new();
out.push_str("# Title\n\n");
out.push_str(title.trim());
out.push_str("\n\n# Description\n\n");
out.push_str(body.trim_end());
out.push('\n');
out
}
fn render_pr_edit_markdown_with_frontmatter(
repo: &str,
number: u64,View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/commit.rs:11612 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01).
Data as JSON: /api/errors/4ded4c54746cd17c.
Report an issue: GitHub.