devhome icon indicating copy to clipboard operation
devhome copied to clipboard

Can't access GitHub repositories from my organization

Open jonobarel opened this issue 2 years ago • 1 comments

Dev Home version

0.137.141.0

Windows build number

10.0.22624.1755

Other software

OS Build Version: 10.0.22624.1755.amd64fre.ni_release.220506-1250 .NET Version: .NET 6.0.16

Steps to reproduce the bug

The repository belongs to an organization of which I am a member and admin. The repository is private.

  1. In Dev Home: I chose to clone repositories from my account on GitHub.
  2. Logged into GitHub.
  3. Back to Dev Home.
  4. Look to clone a repository I'm working on.

Expected result

I was expecting to have the repo available to clone in the list.

Actual result

The repo was not available.

Included System Information

CPU: 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz Physical Memory: 31.88GB (14.74GB free) Processor Architecture: x64

Included Extensions Information

Extensions: Microsoft.Windows.DevHome_0.137.141.0_x64__8wekyb3d8bbwe Microsoft.Windows.DevHomeGitHubExtension_0.137.141.0_x64__8wekyb3d8bbwe

jonobarel avatar May 24 '23 10:05 jonobarel

Related to microsoft/devhome#713.

localden avatar May 24 '23 15:05 localden

Closing as by design. DevHome does not have access to see organization repositories unless the account owner allows DevHome to view their repositories.

I believe, when logging in, the login prompt has the option to request access to your organization if Github recognizes you are part of an organization.

dhoehna avatar Jun 19 '23 19:06 dhoehna

Please follow the steps here to onboard allow DevHome access to your orgs repos.

dhoehna avatar Jun 19 '23 20:06 dhoehna

@dhoehna It seems I cannot view the file. The way I do the login is settings> account > add account > opens prompt *waits for browser and signs in. Where can I find the config to add DevHome access ?

carlos-ss avatar Jun 19 '23 21:06 carlos-ss

@dhoehna I did not see a prompt in Dev Home, but I am able to see the settings in GitHub and grant access from there.

@carlos-ss After granting Dev Home login access, you can go to Github and allow access to specific orgs.

In Github, under Settings >> Applications >> OAuth Apps >> Dev Home I am able to grant access to my organisations.

The organizations now appear in my Dev Home Dashboard

image

jonobarel avatar Jun 20 '23 07:06 jonobarel

I appreciate that @jonobarel.

carlos-ss avatar Jun 20 '23 15:06 carlos-ss

@carlos-ss after following the steps Jonobarel outlined, can you access your org repos?

dhoehna avatar Jun 20 '23 16:06 dhoehna

Yes, I am able to view repos for all the authorized orgs. @dhoehna

carlos-ss avatar Jun 20 '23 16:06 carlos-ss