-
Notifications
You must be signed in to change notification settings - Fork 191
Get-GitHubRepository doesnt show private repository. #178
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
Comments
You want to call: Get-GitHubRepository -Visibility All (without Looks like Thanks for calling attention to this. |
To be clear, when you called the API like this: |
Thank you for answer.
|
My guess is you configured a default owner name. |
Thank you! |
Leaving this open, because the function should not have permitted that combination of parameters without an error. Should have a fix out soon. |
There were a few problems with this function: * -GetAllPublicRepositories didn't actually work. That's now been fixed, and support for the optional Since paramater has been added as well. * Fixed the ParameterSet handling for all of the parameters to make sure that users can only specify parameters relevant with the appropriate parameter set given that there are five different use cases for this method: * Getting repos for the current authenticated user * Getting repos for any GitHub user * Getting repos for an organization * Getting all public repos) * Getting a specific GitHub repo Resolves microsoft#178
There were a few problems with this function: * -GetAllPublicRepositories didn't actually work. That's now been fixed, and support for the optional Since paramater has been added as well. * Fixed the ParameterSet handling for all of the parameters to make sure that users can only specify parameters relevant with the appropriate parameter set given that there are five different use cases for this method: * Getting repos for the current authenticated user * Getting repos for any GitHub user * Getting repos for an organization * Getting all public repos) * Getting a specific GitHub repo Resolves microsoft#178
There were a few problems with this function: * -GetAllPublicRepositories didn't actually work. That's now been fixed, and support for the optional Since paramater has been added as well. * Fixed the ParameterSet handling for all of the parameters to make sure that users can only specify parameters relevant with the appropriate parameter set given that there are five different use cases for this method: * Getting repos for the current authenticated user * Getting repos for any GitHub user * Getting repos for an organization * Getting all public repos) * Getting a specific GitHub repo Resolves #178
@jbostoen - You posted an additional comment to this Issue this morning, reporting that the problem wasn't resolved for you, but then you deleted the comment. Presumably you figured out the problem. However, it would be helpful to keep that in here in case others come across the same problem and want to know what the solution was. This was your original comment:
Configuration is not required. In fact, even if you were to specify a default owner name, it would not be used. So, while configuration isn't required, authentication is. If it wasn't working for you, it's most likely because you had not yet authenticated with GitHub via |
Sorry for the inconvenience, it turned out not all privileges were linked to the access token.
|
Hello,
I want to get all my repository.
Get-GitHubRepository -Visibility All -Type All -OwnerName "Alex-0293"
This show only public repository, instead of all.
But i can see my private repository with
Get-GitHubRepository -Visibility All -Type All -OwnerName "Alex-0293" -RepositoryName "GitProjectClone"
.The text was updated successfully, but these errors were encountered: