{"record":{"id":"02e56500a586fb60","repo":"nikivdev/code","slug":"invalid-github-https-url","errorCode":null,"errorMessage":"Invalid GitHub HTTPS URL: {}","messagePattern":"Invalid GitHub HTTPS URL: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/publish.rs","lineNumber":40,"sourceCode":"        bail!(\"GitHub URL is empty\");\n    }\n\n    if let Some(rest) = trimmed.strip_prefix(\"git@github.com:\") {\n        let rest = rest.trim_end_matches(\".git\");\n        let Some((owner, repo)) = rest.split_once('/') else {\n            bail!(\"Invalid GitHub SSH URL: {}\", url);\n        };\n        return Ok((\n            owner.to_string(),\n            repo.to_string(),\n            format!(\"git@github.com:{}/{}.git\", owner, repo),\n        ));\n    }\n\n    if let Some(rest) = trimmed.strip_prefix(\"https://github.com/\") {\n        let rest = rest.trim_end_matches(\".git\");\n        let Some((owner, repo)) = rest.split_once('/') else {\n            bail!(\"Invalid GitHub HTTPS URL: {}\", url);\n        };\n        return Ok((\n            owner.to_string(),\n            repo.to_string(),\n            format!(\"git@github.com:{}/{}.git\", owner, repo),\n        ));\n    }\n\n    bail!(\n        \"Unsupported GitHub URL (expected https://github.com/... or git@github.com:...): {}\",\n        url\n    );\n}\n\n/// Run the publish command.\npub fn run(cmd: PublishCommand) -> Result<()> {\n    match cmd.action {\n        Some(PublishAction::Gitedit(opts)) => run_gitedit(opts),","sourceCodeStart":22,"sourceCodeEnd":58,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/publish.rs#L22-L58","documentation":"Error \"Invalid GitHub HTTPS URL: {}\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/publish.rs:40 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"}