Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visibility is always None #2099

Closed
bwheelz36 opened this issue Nov 5, 2021 · 4 comments
Closed

Visibility is always None #2099

bwheelz36 opened this issue Nov 5, 2021 · 4 comments

Comments

@bwheelz36
Copy link

bwheelz36 commented Nov 5, 2021

Hi all
I saw #1872 was recently merged. I would like to detect private repos in our enterprise github organization.
However, every repo has visibility=None.
A code snippet to reproduce is below:

all_repos = g.get_user().get_repos()  # assume that the log in details etc. are sorted out upstream
list_of_vis_status= [item.visibility for item in all_repos ]

Any advice? I should mention I am an admin on the organization being scanned...

@s-t-e-v-e-n-k
Copy link
Collaborator

Have a look at raw_data for a few repositories -- this is the raw JSON that GitHub returns, see if visibility is returned.

@bwheelz36
Copy link
Author

no, I can't see anything - so does this just mean that for whatever reason this enterprise version is not returning this data?

@s-t-e-v-e-n-k
Copy link
Collaborator

Sadly, yes -- we can't populate it if the server doesn't return it :-)

@bwheelz36
Copy link
Author

thanks for the help :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants