更新代码仓库相关功能,修改 API 参数,添加删除仓库功能,更新文档和测试用例

This commit is contained in:
xiongxiao
2026-01-16 03:46:14 +08:00
parent d85f42d38b
commit f10f588ea5
10 changed files with 208 additions and 45 deletions

14
create-repo-test.ts Normal file
View File

@@ -0,0 +1,14 @@
import { CNB } from './src/index.ts';
const cnb = new CNB({
token: 'cIDfLOOIr1Trt15cdnwfndupEZG',
cookie: ''
});
const res = await cnb.repo.createRepo('kevisual', {
name: 'exam-kevisual',
description: 'exam repository for kevisual',
visibility: 'public'
});
console.log('Result:', JSON.stringify(res, null, 2));