We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fc47b4 commit 0c83914Copy full SHA for 0c83914
components/dashboard/src/start/CreateWorkspace.tsx
@@ -258,7 +258,7 @@ function RepositoryNotFoundView(p: { error: StartWorkspaceError }) {
258
}
259
260
// TODO: this should be aware of already granted permissions
261
- const missingScope = authProvider.host === 'github.com' ? 'repo' : 'read_repository';
+ const missingScope = authProvider.authProviderType === 'GitHub' ? 'repo' : 'read_repository';
262
const authorizeURL = gitpodHostUrl.withApi({
263
pathname: '/authorize',
264
search: `returnTo=${encodeURIComponent(window.location.toString())}&host=${host}&scopes=${missingScope}`
0 commit comments