功能介绍:
successful.log
)⚠️迁移前必读
docker run --rm \
-e PLUGIN_CODING_TOKEN="xxx" \
-e PLUGIN_CNB_ROOT_ORGANIZATION="xxx" \
-e PLUGIN_CNB_TOKEN="xxx" \
-v $(pwd):$(pwd) -w $(pwd) \
docker.cnb.cool/coding/tool/migrate-collaboration/cnb:latest
# .cnb.yml
$:
tag_push:
- stages:
- name: Coding 项目协同迁移至 CNB
image: docker.cnb.cool/coding/tool/migrate-collaboration/cnb:latest
settings:
coding_token: xxx
cnb_root_organization: xxx
cnb_token: xxx
- name: 持久化迁移日志
script: |
#!/usr/bin/env bash
set -e
git add .
git commit -m "upload log"
git push origin HEAD:main
Coding 访问令牌,个人账户设置-访问令牌。
权限要求:
CNB访问令牌,权限要求:
repo-code:rw,group-resource:rw,group-manage:rw,repo-issue:rw,repo-notes:rw,repo-manage:rw
迁移多少天内创建的事项,默认迁移全部
日志级别,默认info