[BUG]: "internal" is not set as a type for Endpoints['POST /orgs/{org}/repos']['parameters']['visibility'] #522
Labels
hacktoberfest
Issues for participation in Hacktoberfest
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented, or is being fixed
What happened?
When using Octokit to call the GitHub REST API endpoint
POST /orgs/{org}/repos
and settingvisibility
tointernal
there is a TypeScript error.The type for
Endpoints['POST /orgs/{org}/repos']['parameters']['visibility']
is defined as"private" | "public"
and is missinginternal
.When calling the GitHub API directly to create a repository in an organization
visibility
set tointernal
works as expected.The TypeScript type does not match the API functionality.
Related: github/docs#24990
Versions
@octokit/core
version4.2.0
@octokit/types
version9.0.0
NodeJS version
v18.15.0
TypeScript version
5.0.3
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: