provider repos POST
/orgs/{org}/repos @utdk/github
/orgs/{org}/repos Create an organization repository
Creates a new repository in the specified organization. The authenticated user must be a member of the organization.
OAuth app tokens and personal access tokens (classic) need the `public_repo` or `repo` scope to create a public repository, and `repo` scope to create a private repository.
- org path required
- The organization name. The name is not case sensitive.
- string
Try it
Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import github from '@utdk/github';
await github.repos.createInOrg({
"private": false,
"has_issues": true,
"has_projects": true,
"has_wiki": true,
"has_downloads": true,
"is_template": false,
"auto_init": false,
"allow_squash_merge": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"allow_auto_merge": false,
"delete_branch_on_merge": false,
"use_squash_pr_title_as_default": false
})