Create a repository on using Visibility parameter


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 visibility parameter in the Repositories API, and get a repository’s visibility with a new response key. For more information, see the blog post.


Can be public or private . If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal . For more information, see “Creating an internal repository” in the GitHub Help documentation.
The visibility parameter overrides the private parameter when you use both parameters with the nebula-preview preview header.

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 public or private is supposed to work using and older versions GitHub Enterprise?

Thank you

I found the blog post about the feature, which seems to say it is only available to GitHub Enterprise accounts.

This might indicate a documentation error.

1 Like