{"record":{"id":"4ded4c54746cd17c","repo":"nikivdev/code","slug":"missing-pr-title-in-edit-file-expected-a-non-empt","errorCode":null,"errorMessage":"missing PR title in edit file (expected a non-empty line under `# Title`)","messagePattern":"missing PR title in edit file \\(expected a non-empty line under `# Title`\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/commit.rs","lineNumber":11612,"sourceCode":"            // Skip leading blank lines in description.\n            while let Some(nl) = lines.peek() {\n                if nl.trim().is_empty() {\n                    lines.next();\n                } else {\n                    break;\n                }\n            }\n            // Collect remainder verbatim.\n            for rest in lines {\n                desc_lines.push(rest.to_string());\n            }\n            break;\n        }\n    }\n\n    let title = title.unwrap_or_default().trim().to_string();\n    if title.is_empty() {\n        bail!(\"missing PR title in edit file (expected a non-empty line under `# Title`)\");\n    }\n    let body = desc_lines.join(\"\\n\").trim_end().to_string();\n    Ok((title, body))\n}\n\nfn render_pr_edit_markdown(title: &str, body: &str) -> String {\n    let mut out = String::new();\n    out.push_str(\"# Title\\n\\n\");\n    out.push_str(title.trim());\n    out.push_str(\"\\n\\n# Description\\n\\n\");\n    out.push_str(body.trim_end());\n    out.push('\\n');\n    out\n}\n\nfn render_pr_edit_markdown_with_frontmatter(\n    repo: &str,\n    number: u64,","sourceCodeStart":11594,"sourceCodeEnd":11630,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/commit.rs#L11594-L11630","documentation":"Error \"missing PR title in edit file (expected a non-empty line under `# Title`)\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/commit.rs:11612 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}