gitbutlerapp/gitbutler · error
Reactions for forge are not implemented yet.
Error message
Reactions for forge {forge:?} are not implemented yet. What it means
Adding a reaction to the review itself is implemented only for GitHub in but-forge; all other forges hit the catch-all arm returning this error. The library fails loudly rather than reporting a reaction that was never created on the remote.
Solutions
- Only call the review-reaction API for GitHub repositories; disable reaction buttons for other forges.
- Check ForgeName before the call and fall back to the forge's native UI.
- Implement the missing reaction arm for that forge in crates/but-forge/src/review.rs.
Example fix
// before
let reaction = forge::add_review_reaction(forge, review_number, kind, storage).await?;
// after
if forge != ForgeName::GitHub {
return Err(anyhow::anyhow!("reactions only supported for GitHub"));
}
let reaction = forge::add_review_reaction(forge, review_number, kind, storage).await?; Defensive patterns
Strategy: fallback
Validate before calling
if (forge !== 'github') { throw new SkipOperation(`review reactions unsupported for ${forge}`); } Type guard
const isGitHub = (forge: ForgeName): forge is 'github' => forge === 'github';
Try / catch
try { await addReaction(...) } catch (e) { if (String(e).includes('not implemented yet')) { toast('Reactions are not supported on this forge'); } else { throw e; } } Prevention
- Consult the forge capability list before rendering reaction controls
- Never assume GitHub-only review APIs work for all ForgeName values
- Keep per-forge support matrices in tests so gaps surface early
When it happens
Trigger: Calling the add-reaction-to-review function with a repository whose ForgeName is GitLab, Bitbucket, or Azure.
Common situations: Trying to emoji-react to a GitLab merge request, Bitbucket PR, or Azure PR through the GitButler review API; or testing reaction flows against a non-GitHub mock/fixture repo.
Related errors
- Merge status for forge
- Review thread replies for forge
- Review thread resolution for forge
- Azure is unsupported at the minute. Sorry 😞.
- Branch ` ` is not part of the current workspace
AI-assisted analysis of gitbutlerapp/gitbutler@58e5313667 (2026-09-18).
Data as JSON: /api/errors/383d44d98bf39dcd.
Report an issue: GitHub.
Appendix: source
Thrown at crates/but-forge/src/review.rs:1947
) -> Result<ForgeReviewReaction> {
let crate::forge::ForgeRepoInfo {
forge, owner, repo, ..
} = forge_repo_info;
match forge {
ForgeName::GitHub => {
let preferred_account = preferred_forge_user.as_ref().and_then(|user| user.github());
let reaction = but_github::pr::add_review_reaction(
preferred_account,
owner,
repo,
review_number,
kind,
storage,
)
.await?;
Ok(github_reaction(reaction))
}
_ => Err(anyhow::anyhow!(
"Reactions for forge {forge:?} are not implemented yet."
)),
}
}
/// Remove one of the caller's reactions from the review itself.
pub async fn remove_review_reaction(
preferred_forge_user: &Option<crate::ForgeUser>,
forge_repo_info: &crate::forge::ForgeRepoInfo,
review_number: usize,
reaction_id: i64,
storage: &but_forge_storage::Controller,
) -> Result<()> {
let crate::forge::ForgeRepoInfo {
forge, owner, repo, ..
} = forge_repo_info;
match forge {
ForgeName::GitHub => {View on GitHub (pinned to 58e5313667)