While doing a PR to microsoft/PowerShellForGitHub, I found either a bug in the Repositories API, or in the documentation.
In the documentation it states:
Note: You can set the visibility of a repository using the new
visibilityparameter in the Repositories API, and get a repository’s visibility with a new response key. For more information, see the blog post.
private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+,
visibilitycan also be
internal. For more information, see “Creating an internal repository” in the GitHub Help documentation.
visibilityparameter overrides the
privateparameter when you use both parameters with the
If I’m reading this right, it states that the parameter
visibility can be used, but only
internal can be used against GitHub Enterprise 2.20+.
Can someone confirm if the value
private is supposed to work using
GitHub.com and older versions