Creates a new repository in this organization.
POST /orgs/{org}/repos
Repository creation options. name is required.
The newly created repository
Fetches the organization details.
GET /orgs/{org}
The organization object
Fetches members of this organization.
GET /orgs/{org}/members
Optionalparams: OrgMembersParamsOptional filters: role, filter, per_page, page
A paged response of users
Returns a RepositoryResource for a given repository name within this organization.
The returned resource can be awaited directly to fetch repository info, or chained to access nested resources.
The repository name (e.g., 'linguist')
A chainable repository resource
Fetches repositories belonging to this organization.
GET /orgs/{org}/repos
Optionalparams: ReposParamsOptional filters: type, sort, direction, per_page, page
A paged response of repositories
Allows the resource to be awaited directly, resolving with the organization info. Delegates to OrganizationResource.get.
Optionalonfulfilled: null | (value: GitHubOrganization) => TResult1 | PromiseLike<TResult1>Optionalonrejected: null | (reason: unknown) => TResult2 | PromiseLike<TResult2>
Represents a GitHub organization resource with chainable async methods.
Implements
PromiseLike<GitHubOrganization>so it can be awaited directly to fetch the organization info, while also exposing sub-resource methods.Example