Skip to content

org

Accessed as client.misc.org; the async client mirrors it.

MiscOrg

The misc.org namespace.

create_repo

create_repo(
    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
ForbiddenError
  1. APIForbiddenError is a forbidden error response.
NotFoundError
  1. APINotFound is a not found error response.
UnprocessableEntityError
  1. APIValidationError is error format response related to input validation.
Deprecated

Deprecated in the vendored Spec; generated for compatibility.

Operation ID: createOrgRepoDeprecated

AsyncMiscOrg

The misc.org namespace.

create_repo

create_repo(
    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
ForbiddenError
  1. APIForbiddenError is a forbidden error response.
NotFoundError
  1. APINotFound is a not found error response.
UnprocessableEntityError
  1. APIValidationError is error format response related to input validation.
Deprecated

Deprecated in the vendored Spec; generated for compatibility.

Operation ID: createOrgRepoDeprecated