node-cnb 1.7.0 → 1.8.0
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/dist/paths.json +489 -3
- package/package.json +1 -1
- package/pathMethodMap.json +4 -6
- package/src/client.d.ts +45 -0
package/package.json
CHANGED
package/pathMethodMap.json
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"/user/groups": "user.groups.list",
|
|
3
|
-
"/user/groups/{group}": "user.groups.listByGroup",
|
|
4
|
-
"/{repo}/-/issues/{number}/labels": "repo.issues.labels.
|
|
5
|
-
"/{repo}/-/
|
|
6
|
-
"{repo}/-/pulls/{number}/labels": "repo.pulls.labels.delete",
|
|
7
|
-
"/{repo}/-/pulls/{number}/labels/{name}": "repo.pulls.labels.deleteByName"
|
|
2
|
+
"/user/groups#list": "user.groups.list",
|
|
3
|
+
"/user/groups/{group}#list": "user.groups.listByGroup",
|
|
4
|
+
"/{repo}/-/issues/{number}/labels/{name}#delete": "repo.issues.labels.deleteByName",
|
|
5
|
+
"/{repo}/-/pulls/{number}/labels/{name}#delete": "repo.pulls.labels.deleteByName"
|
|
8
6
|
}
|
package/src/client.d.ts
CHANGED
|
@@ -58,6 +58,8 @@ import {
|
|
|
58
58
|
ApiPostIssueCommentForm,
|
|
59
59
|
ApiPatchIssueCommentForm,
|
|
60
60
|
ApiLabel,
|
|
61
|
+
ApiPostIssueLabelsForm,
|
|
62
|
+
ApiPutIssueLabelsForm,
|
|
61
63
|
ApiPostLabelForm,
|
|
62
64
|
ApiPatchLabelForm,
|
|
63
65
|
DtoOutsideCollaboratorInRepo,
|
|
@@ -1462,6 +1464,49 @@ export interface Client {
|
|
|
1462
1464
|
*/
|
|
1463
1465
|
delete: (params: { repo: string; number: number }) => Promise<any>;
|
|
1464
1466
|
|
|
1467
|
+
/***
|
|
1468
|
+
* 查询 Issue 的标签(label) 列表
|
|
1469
|
+
*
|
|
1470
|
+
* 访问令牌调用此接口需包含以下权限
|
|
1471
|
+
* repo-notes:r
|
|
1472
|
+
*
|
|
1473
|
+
* /{repo}/-/issues/{number}/labels
|
|
1474
|
+
*/
|
|
1475
|
+
list: (params: {
|
|
1476
|
+
repo: string;
|
|
1477
|
+
number: number;
|
|
1478
|
+
page?: number;
|
|
1479
|
+
page_size?: number;
|
|
1480
|
+
}) => Promise<ApiLabel[]>;
|
|
1481
|
+
|
|
1482
|
+
/***
|
|
1483
|
+
* 新增 Issue 标签
|
|
1484
|
+
*
|
|
1485
|
+
* 访问令牌调用此接口需包含以下权限
|
|
1486
|
+
* repo-notes:rw
|
|
1487
|
+
*
|
|
1488
|
+
* /{repo}/-/issues/{number}/labels
|
|
1489
|
+
*/
|
|
1490
|
+
post: (params: {
|
|
1491
|
+
repo: string;
|
|
1492
|
+
number: number;
|
|
1493
|
+
post_issue_labels_form: ApiPostIssueLabelsForm;
|
|
1494
|
+
}) => Promise<ApiLabel>;
|
|
1495
|
+
|
|
1496
|
+
/***
|
|
1497
|
+
* 设置 Issue 标签
|
|
1498
|
+
*
|
|
1499
|
+
* 访问令牌调用此接口需包含以下权限
|
|
1500
|
+
* repo-notes:rw
|
|
1501
|
+
*
|
|
1502
|
+
* /{repo}/-/issues/{number}/labels
|
|
1503
|
+
*/
|
|
1504
|
+
put: (params: {
|
|
1505
|
+
repo: string;
|
|
1506
|
+
number: number;
|
|
1507
|
+
put_issue_labels_form: ApiPutIssueLabelsForm;
|
|
1508
|
+
}) => Promise<ApiLabel>;
|
|
1509
|
+
|
|
1465
1510
|
/***
|
|
1466
1511
|
* 删除 Issue 标签
|
|
1467
1512
|
*
|