@cnbcool/cnb-cli 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cnbcool/cnb-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "CNB OpenAPI 命令行工具,基于 CNB 平台 Swagger 自动生成,支持 Issues、PR、Git、组织管理等全部 API 操作",
|
|
5
5
|
"main": "skills/cnb-api/scripts/core/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"author": "",
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@cnbcool/cnb-api-generate": "^1.2.
|
|
37
|
+
"@cnbcool/cnb-api-generate": "^1.2.3",
|
|
38
38
|
"skills": "^1.4.4"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"rank": 5,
|
|
7
7
|
"search": 1,
|
|
8
8
|
"users": 6,
|
|
9
|
-
"issues":
|
|
9
|
+
"issues": 24,
|
|
10
10
|
"repositories": 15,
|
|
11
11
|
"starring": 3,
|
|
12
12
|
"activities": 3,
|
|
@@ -6793,6 +6793,240 @@
|
|
|
6793
6793
|
}
|
|
6794
6794
|
}
|
|
6795
6795
|
},
|
|
6796
|
+
"post-issue-file-asset-upload-url": {
|
|
6797
|
+
"path": "/{repo}/-/issues/{number}/comment-file-asset-upload-url",
|
|
6798
|
+
"method": "post",
|
|
6799
|
+
"category": "issues",
|
|
6800
|
+
"filename": "post-issue-file-asset-upload-url",
|
|
6801
|
+
"summary": "创建一个 Issue 评论的文件上传 url。请使用 put 发起流式上传到 upload_url 地址。上传完成后将 asset_link 添加到创建评论请求的 body 中",
|
|
6802
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-notes:rw",
|
|
6803
|
+
"permission": "repo-notes:rw",
|
|
6804
|
+
"help": {
|
|
6805
|
+
"parameter": {
|
|
6806
|
+
"path": {
|
|
6807
|
+
"repo": {
|
|
6808
|
+
"type": "string",
|
|
6809
|
+
"description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
|
|
6810
|
+
"name": "repo",
|
|
6811
|
+
"required": true
|
|
6812
|
+
},
|
|
6813
|
+
"number": {
|
|
6814
|
+
"type": "number",
|
|
6815
|
+
"description": "仓库内 Issue 唯一编号",
|
|
6816
|
+
"name": "number",
|
|
6817
|
+
"required": true
|
|
6818
|
+
}
|
|
6819
|
+
},
|
|
6820
|
+
"body": {
|
|
6821
|
+
"description": "Post Issue Comment Upload URL Form",
|
|
6822
|
+
"name": "post_issue_upload_url_form",
|
|
6823
|
+
"required": true,
|
|
6824
|
+
"schema": {
|
|
6825
|
+
"type": "object",
|
|
6826
|
+
"properties": {
|
|
6827
|
+
"content_type": {
|
|
6828
|
+
"type": "string",
|
|
6829
|
+
"description": "文件类型。"
|
|
6830
|
+
},
|
|
6831
|
+
"name": {
|
|
6832
|
+
"type": "string",
|
|
6833
|
+
"description": "文件名。必填。"
|
|
6834
|
+
},
|
|
6835
|
+
"size": {
|
|
6836
|
+
"type": "number",
|
|
6837
|
+
"description": "文件大小,单位:字节。必须大于 0。"
|
|
6838
|
+
}
|
|
6839
|
+
}
|
|
6840
|
+
}
|
|
6841
|
+
}
|
|
6842
|
+
},
|
|
6843
|
+
"response": {
|
|
6844
|
+
"201": {
|
|
6845
|
+
"description": "Created",
|
|
6846
|
+
"schema": {
|
|
6847
|
+
"type": "object",
|
|
6848
|
+
"properties": {
|
|
6849
|
+
"asset_link": {
|
|
6850
|
+
"type": "string",
|
|
6851
|
+
"description": "资源链接。添加到 body 中提交。"
|
|
6852
|
+
},
|
|
6853
|
+
"path": {
|
|
6854
|
+
"type": "string",
|
|
6855
|
+
"description": "资源路径。"
|
|
6856
|
+
},
|
|
6857
|
+
"upload_url": {
|
|
6858
|
+
"type": "string",
|
|
6859
|
+
"description": "上传地址。使用 HTTP Put 请求流试发送数据。"
|
|
6860
|
+
}
|
|
6861
|
+
}
|
|
6862
|
+
}
|
|
6863
|
+
},
|
|
6864
|
+
"404": {
|
|
6865
|
+
"description": "Not Found",
|
|
6866
|
+
"schema": {
|
|
6867
|
+
"type": "object",
|
|
6868
|
+
"properties": {
|
|
6869
|
+
"errcode": {
|
|
6870
|
+
"type": "number"
|
|
6871
|
+
},
|
|
6872
|
+
"errmsg": {
|
|
6873
|
+
"type": "string"
|
|
6874
|
+
},
|
|
6875
|
+
"errparam": {
|
|
6876
|
+
"type": "object",
|
|
6877
|
+
"properties": {
|
|
6878
|
+
"type": "object",
|
|
6879
|
+
"additionalProperties": {
|
|
6880
|
+
"type": "any"
|
|
6881
|
+
}
|
|
6882
|
+
}
|
|
6883
|
+
}
|
|
6884
|
+
}
|
|
6885
|
+
}
|
|
6886
|
+
},
|
|
6887
|
+
"500": {
|
|
6888
|
+
"description": "Internal Server Error",
|
|
6889
|
+
"schema": {
|
|
6890
|
+
"type": "object",
|
|
6891
|
+
"properties": {
|
|
6892
|
+
"errcode": {
|
|
6893
|
+
"type": "number"
|
|
6894
|
+
},
|
|
6895
|
+
"errmsg": {
|
|
6896
|
+
"type": "string"
|
|
6897
|
+
},
|
|
6898
|
+
"errparam": {
|
|
6899
|
+
"type": "object",
|
|
6900
|
+
"properties": {
|
|
6901
|
+
"type": "object",
|
|
6902
|
+
"additionalProperties": {
|
|
6903
|
+
"type": "any"
|
|
6904
|
+
}
|
|
6905
|
+
}
|
|
6906
|
+
}
|
|
6907
|
+
}
|
|
6908
|
+
}
|
|
6909
|
+
}
|
|
6910
|
+
}
|
|
6911
|
+
}
|
|
6912
|
+
},
|
|
6913
|
+
"post-issue-image-asset-upload-url": {
|
|
6914
|
+
"path": "/{repo}/-/issues/{number}/comment-image-asset-upload-url",
|
|
6915
|
+
"method": "post",
|
|
6916
|
+
"category": "issues",
|
|
6917
|
+
"filename": "post-issue-image-asset-upload-url",
|
|
6918
|
+
"summary": "创建一个 Issue 评论的图片上传 url。请使用 put 发起流式上传到 upload_url 地址。上传完成后将 asset_link 添加到创建评论请求的 body 中",
|
|
6919
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-notes:rw",
|
|
6920
|
+
"permission": "repo-notes:rw",
|
|
6921
|
+
"help": {
|
|
6922
|
+
"parameter": {
|
|
6923
|
+
"path": {
|
|
6924
|
+
"repo": {
|
|
6925
|
+
"type": "string",
|
|
6926
|
+
"description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
|
|
6927
|
+
"name": "repo",
|
|
6928
|
+
"required": true
|
|
6929
|
+
},
|
|
6930
|
+
"number": {
|
|
6931
|
+
"type": "number",
|
|
6932
|
+
"description": "仓库内 Issue 唯一编号",
|
|
6933
|
+
"name": "number",
|
|
6934
|
+
"required": true
|
|
6935
|
+
}
|
|
6936
|
+
},
|
|
6937
|
+
"body": {
|
|
6938
|
+
"description": "Post Issue Comment Upload URL Form",
|
|
6939
|
+
"name": "post_issue_upload_url_form",
|
|
6940
|
+
"required": true,
|
|
6941
|
+
"schema": {
|
|
6942
|
+
"type": "object",
|
|
6943
|
+
"properties": {
|
|
6944
|
+
"content_type": {
|
|
6945
|
+
"type": "string",
|
|
6946
|
+
"description": "文件类型。"
|
|
6947
|
+
},
|
|
6948
|
+
"name": {
|
|
6949
|
+
"type": "string",
|
|
6950
|
+
"description": "文件名。必填。"
|
|
6951
|
+
},
|
|
6952
|
+
"size": {
|
|
6953
|
+
"type": "number",
|
|
6954
|
+
"description": "文件大小,单位:字节。必须大于 0。"
|
|
6955
|
+
}
|
|
6956
|
+
}
|
|
6957
|
+
}
|
|
6958
|
+
}
|
|
6959
|
+
},
|
|
6960
|
+
"response": {
|
|
6961
|
+
"201": {
|
|
6962
|
+
"description": "Created",
|
|
6963
|
+
"schema": {
|
|
6964
|
+
"type": "object",
|
|
6965
|
+
"properties": {
|
|
6966
|
+
"asset_link": {
|
|
6967
|
+
"type": "string",
|
|
6968
|
+
"description": "资源链接。添加到 body 中提交。"
|
|
6969
|
+
},
|
|
6970
|
+
"path": {
|
|
6971
|
+
"type": "string",
|
|
6972
|
+
"description": "资源路径。"
|
|
6973
|
+
},
|
|
6974
|
+
"upload_url": {
|
|
6975
|
+
"type": "string",
|
|
6976
|
+
"description": "上传地址。使用 HTTP Put 请求流试发送数据。"
|
|
6977
|
+
}
|
|
6978
|
+
}
|
|
6979
|
+
}
|
|
6980
|
+
},
|
|
6981
|
+
"404": {
|
|
6982
|
+
"description": "Not Found",
|
|
6983
|
+
"schema": {
|
|
6984
|
+
"type": "object",
|
|
6985
|
+
"properties": {
|
|
6986
|
+
"errcode": {
|
|
6987
|
+
"type": "number"
|
|
6988
|
+
},
|
|
6989
|
+
"errmsg": {
|
|
6990
|
+
"type": "string"
|
|
6991
|
+
},
|
|
6992
|
+
"errparam": {
|
|
6993
|
+
"type": "object",
|
|
6994
|
+
"properties": {
|
|
6995
|
+
"type": "object",
|
|
6996
|
+
"additionalProperties": {
|
|
6997
|
+
"type": "any"
|
|
6998
|
+
}
|
|
6999
|
+
}
|
|
7000
|
+
}
|
|
7001
|
+
}
|
|
7002
|
+
}
|
|
7003
|
+
},
|
|
7004
|
+
"500": {
|
|
7005
|
+
"description": "Internal Server Error",
|
|
7006
|
+
"schema": {
|
|
7007
|
+
"type": "object",
|
|
7008
|
+
"properties": {
|
|
7009
|
+
"errcode": {
|
|
7010
|
+
"type": "number"
|
|
7011
|
+
},
|
|
7012
|
+
"errmsg": {
|
|
7013
|
+
"type": "string"
|
|
7014
|
+
},
|
|
7015
|
+
"errparam": {
|
|
7016
|
+
"type": "object",
|
|
7017
|
+
"properties": {
|
|
7018
|
+
"type": "object",
|
|
7019
|
+
"additionalProperties": {
|
|
7020
|
+
"type": "any"
|
|
7021
|
+
}
|
|
7022
|
+
}
|
|
7023
|
+
}
|
|
7024
|
+
}
|
|
7025
|
+
}
|
|
7026
|
+
}
|
|
7027
|
+
}
|
|
7028
|
+
}
|
|
7029
|
+
},
|
|
6796
7030
|
"list-issue-comments": {
|
|
6797
7031
|
"path": "/{repo}/-/issues/{number}/comments",
|
|
6798
7032
|
"method": "get",
|
|
@@ -14,9 +14,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
14
14
|
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
15
|
* ## ##
|
|
16
16
|
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/
|
|
17
|
+
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
18
|
* -------------------------------------------------------------------------
|
|
19
|
-
* @Version 1.2.1
|
|
20
19
|
* @Source /{repo}/-/issues/{number}/comment-file-asset-upload-url
|
|
21
20
|
*/
|
|
22
21
|
|
|
@@ -14,9 +14,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
14
14
|
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
15
|
* ## ##
|
|
16
16
|
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/
|
|
17
|
+
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
18
|
* -------------------------------------------------------------------------
|
|
19
|
-
* @Version 1.2.1
|
|
20
19
|
* @Source /{repo}/-/issues/{number}/comment-image-asset-upload-url
|
|
21
20
|
*/
|
|
22
21
|
|