CreateRepoOption
Import from pyfj or pyfj.models as CreateRepoOption.
CreateRepoOption
CreateRepoOption options when creating repository
auto_init
auto_init: bool | None = Field(default=None, description='Whether the repository should be auto-initialized?')
default_branch
default_branch: str | None = Field(
default=None, description="DefaultBranch of the repository (used when initializes and in template)"
)
description
description: str | None = Field(default=None, description='Description of the repository to create')
gitignores
gitignores: str | None = Field(default=None, description='Gitignores to use, separated by commas')
issue_labels
issue_labels: str | None = Field(default=None, description='Label-Set to use')
license
license: str | None = Field(default=None, description='License to use')
name
name: str = Field(description='Name of the repository to create')
object_format_name
object_format_name: CreateRepoOptionObjectFormatName | None = Field(
default=None, description="ObjectFormatName of the underlying git repository"
)
private
private: bool | None = Field(default=None, description='Whether the repository is private')
readme
readme: str | None = Field(default=None, description='Readme of the repository to create')
template
template: bool | None = Field(default=None, description='Whether the repository is template')
trust_model
trust_model: CreateRepoOptionTrustModel | None = Field(default=None, description='TrustModel of the repository')
CreateRepoOptionObjectFormatName
ObjectFormatName of the underlying git repository
SHA1
SHA1 = 'sha1'
SHA256
SHA256 = 'sha256'
CreateRepoOptionTrustModel
TrustModel of the repository
COLLABORATOR
COLLABORATOR = 'collaborator'
COLLABORATORCOMMITTER
COLLABORATORCOMMITTER = 'collaboratorcommitter'
COMMITTER
COMMITTER = 'committer'
DEFAULT
DEFAULT = 'default'
Used by
| Namespace | Operations |
|---|---|
admin.users |
create_repo · create_repo |
misc.org |
create_repo · create_repo |
orgs.repos |
create · create |
user.repos |
create · create |