GenerateRepoOption
Import from pyfj or pyfj.models as GenerateRepoOption.
GenerateRepoOption
GenerateRepoOption options when creating repository using a template
avatar
avatar: bool | None = Field(default=None, description='include avatar of the template repo')
default_branch
default_branch: str | None = Field(default=None, description='Default branch of the new repository')
description
description: str | None = Field(default=None, description='Description of the repository to create')
git_content
git_content: bool | None = Field(default=None, description='include git content of default branch in template repo')
git_hooks
git_hooks: bool | None = Field(default=None, description='include git hooks in template repo')
labels
labels: bool | None = Field(default=None, description='include labels in template repo')
name
name: str = Field(description='Name of the repository to create')
owner
owner: str = Field(description='The organization or person who will own the new repository')
private
private: bool | None = Field(default=None, description='Whether the repository is private')
protected_branch
protected_branch: bool | None = Field(default=None, description='include protected branches in template repo')
topics
topics: bool | None = Field(default=None, description='include topics in template repo')
webhooks
webhooks: bool | None = Field(default=None, description='include webhooks in template repo')