更新代码仓库相关功能,修改 API 参数,添加删除仓库功能,更新文档和测试用例
This commit is contained in:
14
create-repo-test.ts
Normal file
14
create-repo-test.ts
Normal 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));
|
||||
Reference in New Issue
Block a user