MigrateRepoOptions
Import from pyfj or pyfj.models as MigrateRepoOptions.
MigrateRepoOptions
MigrateRepoOptions options for migrating repository's this is used to interact with api v1
auth_password
auth_password: str | None = None
auth_token
auth_token: str | None = None
auth_username
auth_username: str | None = None
clone_addr
clone_addr: str
description
description: str | None = None
issues
issues: bool | None = None
labels
labels: bool | None = None
lfs
lfs: bool | None = None
lfs_endpoint
lfs_endpoint: str | None = None
milestones
milestones: bool | None = None
mirror
mirror: bool | None = None
mirror_interval
mirror_interval: str | None = None
private
private: bool | None = None
pull_requests
pull_requests: bool | None = None
releases
releases: bool | None = None
repo_name
repo_name: str
repo_owner
repo_owner: str | None = Field(
default=None, description="Name of User or Organisation who will own Repo after migration"
)
uid
uid: int | None = Field(default=None, description='deprecated (only for backwards compatibility)')
wiki
wiki: bool | None = None
MigrateRepoOptionsService
CODEBASE
CODEBASE = 'codebase'
FORGEJO
FORGEJO = 'forgejo'
GIT
GIT = 'git'
GITBUCKET
GITBUCKET = 'gitbucket'
GITEA
GITEA = 'gitea'
GITHUB
GITHUB = 'github'
GITLAB
GITLAB = 'gitlab'
GOGS
GOGS = 'gogs'
ONEDEV
ONEDEV = 'onedev'
PAGURE
PAGURE = 'pagure'
Used by
| Namespace | Operations |
|---|---|
repos |
migrate |