Skip to content

Commit 821872a

Browse files
committed
[dashboard] help github users with org restrictions
1 parent 2e8e2d9 commit 821872a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

components/dashboard/src/workspaces/CreateWorkspacePage.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import { useAllowedWorkspaceClassesMemo } from "../data/workspaces/workspace-cla
5454
import Menu from "../menu/Menu";
5555
import { useOrgSettingsQuery } from "../data/organizations/org-settings-query";
5656
import { useAllowedWorkspaceEditorsMemo } from "../data/ide-options/ide-options-query";
57+
import { isGitpodIo } from "../utils";
5758

5859
type NextLoadOption = "searchParams" | "autoStart" | "allDone";
5960

@@ -746,6 +747,15 @@ export const RepositoryNotFound: FC<{ error: StartWorkspaceError }> = ({ error }
746747
/>
747748
);
748749
}
750+
if (authProvider.id.toLocaleLowerCase() === "public-github" && isGitpodIo()) {
751+
return (
752+
<RepositoryInputError
753+
title={`Although you appear to have the correct authorization credentials, the '${owner}' organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited. For more information on these restrictions, including how to enable this app, visit https://docs.github.com/articles/restricting-access-to-your-organization-s-data/.`}
754+
linkText="Check Organization Permissions"
755+
linkHref={"https://github.com/settings/connections/applications/484069277e293e6d2a2a"}
756+
/>
757+
);
758+
}
749759

750760
return (
751761
<RepositoryInputError

0 commit comments

Comments
 (0)