repos
Accessed as client.orgs.repos; the async client mirrors it.
OrgsRepos
The orgs.repos namespace.
create
create(
org: str,
*,
auto_init: bool | None = None,
default_branch: str | None = None,
description: str | None = None,
gitignores: str | None = None,
issue_labels: str | None = None,
license: str | None = None,
name: str,
object_format_name: CreateRepoOptionObjectFormatName | None = None,
private: bool | None = None,
readme: str | None = None,
template: bool | None = None,
trust_model: CreateRepoOptionTrustModel | None = None,
) -> Repository
Create a repository in an organization.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
org
|
str
|
name of organization |
required |
auto_init
|
bool | None
|
Whether the repository should be auto-initialized? |
None
|
default_branch
|
str | None
|
DefaultBranch of the repository (used when initializes and in template) |
None
|
description
|
str | None
|
Description of the repository to create |
None
|
gitignores
|
str | None
|
Gitignores to use, separated by commas |
None
|
issue_labels
|
str | None
|
Label-Set to use |
None
|
license
|
str | None
|
License to use |
None
|
name
|
str
|
Name of the repository to create |
required |
object_format_name
|
CreateRepoOptionObjectFormatName | None
|
ObjectFormatName of the underlying git repository |
None
|
private
|
bool | None
|
Whether the repository is private |
None
|
readme
|
str | None
|
Readme of the repository to create |
None
|
template
|
bool | None
|
Whether the repository is template |
None
|
trust_model
|
CreateRepoOptionTrustModel | None
|
TrustModel of the repository |
None
|
Returns:
| Type | Description |
|---|---|
Repository
|
Repository. |
Raises:
| Type | Description |
|---|---|
BadRequestError
|
|
ForbiddenError
|
|
NotFoundError
|
|
Operation ID: createOrgRepo
list
list(org: str, *, page: int | None = None, limit: int | None = None) -> Paginated[Repository]
List an organization's repos.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
org
|
str
|
name of the organization |
required |
page
|
int | None
|
1-based page to start iteration at. |
None
|
limit
|
int | None
|
Page size; the instance caps it server-side. |
None
|
Returns:
| Type | Description |
|---|---|
Paginated[Repository]
|
RepositoryList. |
Raises:
| Type | Description |
|---|---|
NotFoundError
|
|
Operation ID: orgListRepos
AsyncOrgsRepos
The orgs.repos namespace.
create
create(
org: str,
*,
auto_init: bool | None = None,
default_branch: str | None = None,
description: str | None = None,
gitignores: str | None = None,
issue_labels: str | None = None,
license: str | None = None,
name: str,
object_format_name: CreateRepoOptionObjectFormatName | None = None,
private: bool | None = None,
readme: str | None = None,
template: bool | None = None,
trust_model: CreateRepoOptionTrustModel | None = None,
) -> Repository
Create a repository in an organization.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
org
|
str
|
name of organization |
required |
auto_init
|
bool | None
|
Whether the repository should be auto-initialized? |
None
|
default_branch
|
str | None
|
DefaultBranch of the repository (used when initializes and in template) |
None
|
description
|
str | None
|
Description of the repository to create |
None
|
gitignores
|
str | None
|
Gitignores to use, separated by commas |
None
|
issue_labels
|
str | None
|
Label-Set to use |
None
|
license
|
str | None
|
License to use |
None
|
name
|
str
|
Name of the repository to create |
required |
object_format_name
|
CreateRepoOptionObjectFormatName | None
|
ObjectFormatName of the underlying git repository |
None
|
private
|
bool | None
|
Whether the repository is private |
None
|
readme
|
str | None
|
Readme of the repository to create |
None
|
template
|
bool | None
|
Whether the repository is template |
None
|
trust_model
|
CreateRepoOptionTrustModel | None
|
TrustModel of the repository |
None
|
Returns:
| Type | Description |
|---|---|
Repository
|
Repository. |
Raises:
| Type | Description |
|---|---|
BadRequestError
|
|
ForbiddenError
|
|
NotFoundError
|
|
Operation ID: createOrgRepo
list
list(org: str, *, page: int | None = None, limit: int | None = None) -> AsyncPaginated[Repository]
List an organization's repos.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
org
|
str
|
name of the organization |
required |
page
|
int | None
|
1-based page to start iteration at. |
None
|
limit
|
int | None
|
Page size; the instance caps it server-side. |
None
|
Returns:
| Type | Description |
|---|---|
AsyncPaginated[Repository]
|
RepositoryList. |
Raises:
| Type | Description |
|---|---|
NotFoundError
|
|
Operation ID: orgListRepos