{"record":{"id":"90fd890dbb72a88c","repo":"gitbutlerapp/gitbutler","slug":"listing-ci-checks-for-forge-forge-is-not-imple","errorCode":null,"errorMessage":"Listing ci checks for forge {forge:?} is not implemented yet.","messagePattern":"Listing ci checks for forge (.+?) is not implemented yet\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"crates/but-forge/src/ci.rs","lineNumber":203,"sourceCode":"                    &reference,\n                    &storage,\n                ))\n            })\n            .join()\n            .map_err(|e| anyhow::anyhow!(\"Failed to join thread: {e:?}\"))??;\n\n            Ok(statuses.map(|statuses| {\n                statuses\n                    .into_iter()\n                    .map(|status| {\n                        let mut ci_check = CiCheck::from(status);\n                        ci_check.reference = reference_for_checks.to_string();\n                        ci_check\n                    })\n                    .collect()\n            }))\n        }\n        _ => Err(anyhow::anyhow!(\n            \"Listing ci checks for forge {forge:?} is not implemented yet.\"\n        )),\n    }\n}\n\n#[derive(Debug, Clone, Serialize)]\n#[cfg_attr(feature = \"export-schema\", derive(schemars::JsonSchema))]\n#[serde(rename_all = \"camelCase\")]\npub struct CiCheck {\n    pub id: i64,\n    pub name: String,\n    pub output: CiOutput,\n    pub started_at: Option<chrono::DateTime<chrono::Utc>>,\n    pub status: CiStatus,\n    pub head_sha: String,\n    pub url: String,\n    pub html_url: String,\n    pub details_url: String,","sourceCodeStart":185,"sourceCodeEnd":221,"githubUrl":"https://github.com/gitbutlerapp/gitbutler/blob/58e5313667b857ef39a730e380af31816a7b1768/crates/but-forge/src/ci.rs#L185-L221","documentation":"ci_checks_for_ref only implements CI check listing for the forges it matches (GitHub, etc.). When the resolved ForgeName falls into the wildcard `_` arm, this anyhow error is returned stating listing CI checks is not implemented for that forge.","triggerScenarios":"Calling the CI-check fetch path (via fetch_and_refresh_cache) with a forge_repo_info whose forge is one of the unimplemented variants, e.g. ForgeName::Azure or any other unsupported forge.","commonSituations":"Repository remote points at an Azure DevOps (or other unsupported) host; forge detection misidentifies the host from the remote URL; a new forge variant added to ForgeName before CI support was implemented.","solutions":["Verify the repository remote points to a supported forge (GitHub, GitLab, Bitbucket)","Add a match arm implementing CI listing for the missing forge, or explicitly filter unsupported forges earlier with a clear user-facing message","If the forge should be supported, check for forge-detection bugs in remote URL parsing"],"exampleFix":"// before\n_ => Err(anyhow::anyhow!(\"Listing ci checks for forge {forge:?} is not implemented yet.\"))\n// after\nForgeName::Azure => Err(anyhow::anyhow!(\"Azure DevOps CI check listing is not supported; use a GitHub/GitLab/Bitbucket remote\")),\nforge => Err(anyhow::anyhow!(...))","handlingStrategy":"validation","validationCode":"const SUPPORTED: &[ForgeName] = &[ForgeName::GitHub, ForgeName::GitLab, ForgeName::Bitbucket];\nif !SUPPORTED.contains(&forge_repo_info.forge) {\n    return Err(\"CI checks are only supported for GitHub, GitLab and Bitbucket\");\n}","typeGuard":null,"tryCatchPattern":"match ci_checks_for_ref(...) {\n    Ok(statuses) => statuses,\n    Err(e) if e.to_string().contains(\"not implemented\") => Vec::new(), // treat as no CI data\n    Err(e) => return Err(e),\n}","preventionTips":["Check which forge the remote points to before calling CI APIs","Gate forge features behind a capability check on ForgeName","Update forge detection if a supported forge is misclassified"],"tags":["rust","unsupported-forge","ci"],"backgroundTag":"unsupported-operation","analyzedSha":"58e5313667b857ef39a730e380af31816a7b1768","analyzedAt":"2026-09-18T06:50:32.052Z","contentChangedAt":"2026-09-18T06:50:32.052Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}