From bc7635dbd19cc5a2757192f71c1cc3f99ff12374 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Mon, 24 Aug 2026 17:49:49 -0400 Subject: [PATCH] fix(github): name both causes of an installation lookup 404 GET /repos/{owner}/{repo}/installation returns 404 both when the App is not installed for the owner and when the installation's repository selection excludes the repository. The single-repository mint path reported only the first cause, which misleads users whose App is installed but not scoped to the repository. Name both causes and the repository in the error. Co-Authored-By: Claude Fable 5 --- lib/components/fabro-github/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/fabro-github/src/lib.rs b/lib/components/fabro-github/src/lib.rs index 87990e757..94592a59a 100644 --- a/lib/components/fabro-github/src/lib.rs +++ b/lib/components/fabro-github/src/lib.rs @@ -617,8 +617,8 @@ async fn mint_installation_token_with_jwt( str::to_string, ); bail!( - "GitHub App is not installed for {owner}. \ - Install it at {install_url}" + "GitHub App is not installed for {owner}, or its installation does not \ + include {owner}/{primary_repo}. Check repository access at {install_url}" ); } InstallationLookup::Failed(403) => {