{"record":{"id":"2f134459250d04c1","repo":"gitbutlerapp/gitbutler","slug":"azure-is-unsupported-at-the-minute-sorry","errorCode":null,"errorMessage":"Azure is unsupported at the minute. Sorry 😞.","messagePattern":"Azure is unsupported at the minute\\. Sorry 😞\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/but/src/command/legacy/forge/review.rs","lineNumber":403,"sourceCode":"            but_forge_storage::Controller::from_path(but_path::app_data_dir()?),\n            forge_repo_info,\n            ctx.legacy_project.preferred_forge_user.clone(),\n        )\n    };\n\n    let forge_repo_info = forge_repo_info.ok_or_else(|| {\n        anyhow::anyhow!(\n            \"Unable to determine the forge for this project. Is target branch associated with a supported forge?\"\n        )\n    })?;\n\n    let account_validity =\n        but_forge::check_forge_account_is_valid(preferred_forge_user, &forge_repo_info, &storage)\n            .await?;\n\n    let forge_display_name = match forge_repo_info.forge {\n        but_forge::ForgeName::Azure => {\n            anyhow::bail!(\"Azure is unsupported at the minute. Sorry 😞.\");\n        }\n        but_forge::ForgeName::GitHub => \"GitHub\",\n        but_forge::ForgeName::GitLab => \"GitLab\",\n        but_forge::ForgeName::Bitbucket => \"Bitbucket\",\n    };\n\n    match account_validity {\n        but_forge::ForgeAccountValidity::Invalid => Err(anyhow::anyhow!(\n            \"Known account is not correctly authenticated.\\nRun '{}' to authenticate with {}.\",\n            \"but config forge auth\",\n            forge_display_name\n        )),\n        but_forge::ForgeAccountValidity::NoCredentials => Err(anyhow::anyhow!(\n            \"No authenticated forge users found.\\nRun '{}' to authenticate with {}.\",\n            \"but config forge auth\",\n            forge_display_name\n        )),\n        but_forge::ForgeAccountValidity::Valid => {","sourceCodeStart":385,"sourceCodeEnd":421,"githubUrl":"https://github.com/gitbutlerapp/gitbutler/blob/58e5313667b857ef39a730e380af31816a7b1768/crates/but/src/command/legacy/forge/review.rs#L385-L421","documentation":"The forge review command (`but review`, auto-merge enable, draft toggling) checks which forge the repository's remote belongs to. Azure DevOps is recognized but has no implemented integration, so the code bails early with an explicit unsupported-forge message instead of failing later in the API layer.","triggerScenarios":"Running `but review`, `but merge --set-draft`, or auto-merge commands (`enable_auto_merge`, `set_draftiness`, `create_review` → `ensure_forge_authentication`) in a repo whose remote resolves `forge_repo_info.forge` to `ForgeName::Azure`.","commonSituations":"Repository hosted on Azure DevOps; user tries to create a PR or enable auto-merge via GitButler CLI; after switching a remote to an Azure-hosted URL.","solutions":["Push/host the repository on a supported forge (GitHub, GitLab, or Bitbucket) and update the remote URL","Perform PR creation / merge operations manually via the Azure DevOps web UI or `az repos` CLI","Watch GitButler releases for Azure support and upgrade when available","If Azure is mistakenly detected (e.g. wrong remote), check `git remote -v` and remove the Azure remote"],"exampleFix":"// before\nbut merge --auto  # fails: Azure unsupported\n// after: use Azure DevOps CLI\naz repos pr create --target-branch main","handlingStrategy":"validation","validationCode":"if forge_repo_info.forge == but_forge::ForgeName::Azure {\n    eprintln!(\"Azure DevOps is not supported; use GitHub/GitLab/Bitbucket\");\n    std::process::exit(1);\n}","typeGuard":null,"tryCatchPattern":"match create_review(...) {\n    Err(e) if e.to_string().contains(\"Azure is unsupported\") => {\n        eprintln!(\"Falling back to manual PR creation on Azure DevOps\");\n    }\n    other => other?,\n}","preventionTips":["Check the forge type from the remote URL before invoking forge-dependent commands","Gate Azure repos on a supported-forge allowlist (GitHub, GitLab, Bitbucket) in tooling","Subscribe to release notes to know when Azure support lands"],"tags":["forge","azure","unsupported"],"backgroundTag":"unsupported-platform","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"}