{"record":{"id":"60f135e4323ead36","repo":"gitbutlerapp/gitbutler","slug":"marking-reviews-ready-is-not-supported-for","errorCode":null,"errorMessage":"Marking reviews ready is not supported for {:?}","messagePattern":"Marking reviews ready is not supported for (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/but/src/command/mcp/mod.rs","lineNumber":801,"sourceCode":"}\n\nfn prepare_mark_review_ready(request: &MarkReviewReadyRequest) -> Result<MarkReadyPreparation> {\n    let resolved = open_repository(&request.repository)?;\n    let forge = ForgeRepository::from_context(&resolved.ctx)?;\n    let review = forge.get_review(&resolved.ctx, request.review_number)?;\n    if !review.is_open() {\n        bail!(\n            \"{}{} is not open and cannot be marked ready\",\n            review.unit_symbol,\n            review.number\n        );\n    }\n    if !review.draft {\n        return review_view_from_repository(resolved, &[request.review_number])\n            .map(MarkReadyPreparation::AlreadyReady);\n    }\n    if !forge.display.capabilities.pr_service {\n        bail!(\n            \"Marking reviews ready is not supported for {:?}\",\n            forge.display.name\n        );\n    }\n\n    let ForgeRepository {\n        preferred_user,\n        repository,\n        storage,\n        ..\n    } = forge;\n    Ok(MarkReadyPreparation::Update {\n        preferred_user,\n        repository,\n        storage,\n    })\n}\n","sourceCodeStart":783,"sourceCodeEnd":819,"githubUrl":"https://github.com/gitbutlerapp/gitbutler/blob/58e5313667b857ef39a730e380af31816a7b1768/crates/but/src/command/mcp/mod.rs#L783-L819","documentation":"After confirming the review is a draft, the code checks the forge's capability flags (forge.display.capabilities.pr_service). If the forge backend does not support pull-request services, marking a review ready is not supported and the operation bails naming the forge. This is a capability-gated unsupported operation, not a user mistake.","triggerScenarios":"Calling mark-review-ready for a draft review hosted on a forge whose display.capabilities.pr_service is false (e.g. forges without PR support).","commonSituations":"Working with repositories hosted on forges lacking PR support; misdetected forge type for the remote URL; using a backend integration that doesn't implement PR services.","solutions":["Use a forge/remote hosting that supports PRs (pr_service capability)","Mark the review ready directly on the forge's web UI if it supports it there","Verify the remote URL/forge detection is correct for the repository"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"const forgeName = detectForge(remoteUrl);\nif (!FORGES_WITH_PR_SUPPORT.has(forgeName)) throw new Error(`mark-ready unsupported for ${forgeName}`);","typeGuard":null,"tryCatchPattern":"try { await callTool('mark_review_ready', req); } catch (e) { if (/not supported for/.test(e.message)) fallbackToWebUi(e); }","preventionTips":["Check forge capability before offering the mark-ready action in tooling","Ensure the repository's remote maps to a PR-capable forge","Keep forge detection/integration up to date"],"tags":["mcp","forge","capability"],"backgroundTag":"operation-not-supported","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"}