Docs do not list internal
as a visibility
option for the POST /orgs/{org}/repos
REST API endpoint
#24990
Closed
1 task done
Labels
content
This issue or pull request belongs to the Docs Content team
enterprise
Content relating to GitHub Enterprise
rest
Content related to rest - overview.
waiting for review
Issue/PR is waiting for a writer's review
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#create-an-organization-repository
What changes are you suggesting?
visibility
is listed asprivate
orpublic
.internal
should be included as GitHub organizations can haveinternal
visibility set for repositories.Additionally, calling the
POST /orgs/{org}/repos
REST API endpoint withvisibility
set asinternal
does work, making the documentation inaccurate.Additional information
I am using TypeScript and the GitHub Octokit NodeJS SDK for a project, which is giving a TypeScript type error when trying to set the
visibility
tointernal
for thePOST /orgs/{org}/repos
REST API endpoint.The incorrect type is generated and can be found in https://raw.githubusercontent.com/octokit/openapi-types.ts/v16.0.0/packages/openapi-types/types.d.ts at line
97636
, where it is declared asvisibility?: "public" | "private";
I believe the GitHub API needs to be updated, which will also update the generated documentation and TypeScript types.
The text was updated successfully, but these errors were encountered: