logo
0
0
Login
Forkfromcnb/plugins/cnbcool/code-import, behind:main44 commits

CNB Code Import (Batch Repository Migration Tool)

badge badge badge

📒Features

  1. Support batch migration from CODING, GitHub, GitLab, Gitee, Codeup(Alibaba Cloud), CNB, Tencent Git, and other third-party code hosting platforms to CNB
  2. Automatically create CNB sub-organizations and repositories (migrated repository path will be <CNB root org>/<source repo path>)
  3. Automatically skip successfully migrated repositories (⚠️ depends on successful.log file in working directory)
  4. SVN repositories are not supported, please convert to git repositories first

🌟Preparation

  1. Create access token for source platform

  2. Create root organization in CNB

  3. Create CNB access token

    Detailed steps

🚀Quick Start

🔖Parameters

❓FAQ

  1. Exceeds single file size limit of 256 MiB Enable PLUGIN_MIGRATE_USE_LFS_MIGRATE parameter, see More parameters
  2. Failed to get repository list/project info: The current scope does not support access to this API Check if PLUGIN_SOURCE_TOKEN has required permissions. For CODING platform, ensure token belongs to team owner or admin, see CODING Token requirements
  3. Failed to download LFS files LFS: Repository or object not found
    Enable PLUGIN_MIGRATE_ALLOW_INCOMPLETE_PUSH, see More parameters
  4. Push failed: git pull before pushing again
    Enable PLUGIN_MIGRATE_FORCE_PUSH based on actual situation, see More parameters
  5. How to migrate only specific repositories?
    Set PLUGIN_MIGRATE_ALLOW_SELECT_REPOS=true, after first run edit repo-path.txt to keep only the repositories you want to migrate.

About

批量迁移代码托管平台代码仓库到 CNB

Language
Go96.2%
Shell3.3%
Dockerfile0.5%