node-cnb 1.12.0 → 1.14.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 CHANGED
@@ -275,7 +275,7 @@
275
275
  "type": "string"
276
276
  },
277
277
  {
278
- "description": "Type",
278
+ "description": "RType",
279
279
  "enum": [
280
280
  "private",
281
281
  "public",
@@ -387,7 +387,7 @@
387
387
  "description": "OK",
388
388
  "schema": {
389
389
  "items": {
390
- "$ref": "#/definitions/dto.Repos4UserBase"
390
+ "$ref": "#/definitions/dto.Repos4User"
391
391
  },
392
392
  "type": "array"
393
393
  }
@@ -424,6 +424,41 @@
424
424
  "path": "/users/{username}",
425
425
  "method": "get"
426
426
  },
427
+ "users.activities.get": {
428
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
429
+ "operationId": "GetUserActivitiesByDate",
430
+ "tags": [
431
+ "Activities"
432
+ ],
433
+ "summary": "获取个人动态活跃详情汇总",
434
+ "parameters": [
435
+ {
436
+ "default": "someone",
437
+ "description": "UserName",
438
+ "in": "path",
439
+ "name": "username",
440
+ "required": true,
441
+ "type": "string"
442
+ },
443
+ {
444
+ "default": "",
445
+ "description": "查询日期,格式 yyyyMM,或者 yyyyMMdd",
446
+ "in": "query",
447
+ "name": "date",
448
+ "type": "string"
449
+ }
450
+ ],
451
+ "responses": {
452
+ "200": {
453
+ "description": "OK",
454
+ "schema": {
455
+ "$ref": "#/definitions/dto.ActivityDate"
456
+ }
457
+ }
458
+ },
459
+ "path": "/users/{username}/activities",
460
+ "method": "get"
461
+ },
427
462
  "users.avatar.get": {
428
463
  "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-profile:r",
429
464
  "operationId": "GetUserAvatar",
@@ -639,6 +674,63 @@
639
674
  "path": "/users/{username}/pinned-repos",
640
675
  "method": "get"
641
676
  },
677
+ "users.repoActivities.list": {
678
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
679
+ "operationId": "GetUserRepoActivityDetails",
680
+ "tags": [
681
+ "Activities"
682
+ ],
683
+ "summary": "个人仓库动态详情列表",
684
+ "parameters": [
685
+ {
686
+ "default": "someone",
687
+ "description": "UserName",
688
+ "in": "path",
689
+ "name": "username",
690
+ "required": true,
691
+ "type": "string"
692
+ },
693
+ {
694
+ "description": "activity type",
695
+ "enum": [
696
+ "issue",
697
+ "pull_request",
698
+ "code_review"
699
+ ],
700
+ "in": "path",
701
+ "name": "activityType",
702
+ "required": true,
703
+ "type": "string"
704
+ },
705
+ {
706
+ "default": "",
707
+ "description": "仓库路径",
708
+ "in": "query",
709
+ "name": "slug",
710
+ "required": true,
711
+ "type": "string"
712
+ },
713
+ {
714
+ "default": "",
715
+ "description": "查询日期,格式 yyyyMM,或者 yyyyMMdd",
716
+ "in": "query",
717
+ "name": "date",
718
+ "required": true,
719
+ "type": "string"
720
+ }
721
+ ],
722
+ "responses": {
723
+ "200": {
724
+ "description": "返回 []dto.ActivityPullRequestDetail|[]dto.ActivityIssueDetail",
725
+ "schema": {
726
+ "items": {},
727
+ "type": "array"
728
+ }
729
+ }
730
+ },
731
+ "path": "/users/{username}/repo-activities/{activityType}",
732
+ "method": "get"
733
+ },
642
734
  "users.repos.list": {
643
735
  "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
644
736
  "operationId": "GetReposByUserName",
@@ -1536,7 +1628,7 @@
1536
1628
  "description": "OK",
1537
1629
  "schema": {
1538
1630
  "items": {
1539
- "$ref": "#/definitions/dto.Repos4UserBase"
1631
+ "$ref": "#/definitions/dto.Repos4User"
1540
1632
  },
1541
1633
  "type": "array"
1542
1634
  }
@@ -2087,10 +2179,7 @@
2087
2179
  "200": {
2088
2180
  "description": "OK",
2089
2181
  "schema": {
2090
- "items": {
2091
- "$ref": "#/definitions/dto.BuildResult"
2092
- },
2093
- "type": "array"
2182
+ "$ref": "#/definitions/dto.BuildResult"
2094
2183
  }
2095
2184
  }
2096
2185
  },
@@ -2158,10 +2247,7 @@
2158
2247
  "200": {
2159
2248
  "description": "OK",
2160
2249
  "schema": {
2161
- "items": {
2162
- "$ref": "#/definitions/dto.BuildResult"
2163
- },
2164
- "type": "array"
2250
+ "$ref": "#/definitions/dto.BuildResult"
2165
2251
  }
2166
2252
  }
2167
2253
  },
@@ -2352,7 +2438,7 @@
2352
2438
  "path": "/{repo}/-/files/{userIdKey}/{randomUUID}/{fileName}",
2353
2439
  "method": "put"
2354
2440
  },
2355
- "repo.forks.list": {
2441
+ "repo.forks.get": {
2356
2442
  "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-base-info:r",
2357
2443
  "operationId": "ListForksRepos",
2358
2444
  "tags": [
@@ -2367,6 +2453,13 @@
2367
2453
  "required": true,
2368
2454
  "type": "string"
2369
2455
  },
2456
+ {
2457
+ "default": false,
2458
+ "description": "从fork根节点开始展示",
2459
+ "in": "query",
2460
+ "name": "start_from_root",
2461
+ "type": "boolean"
2462
+ },
2370
2463
  {
2371
2464
  "default": 1,
2372
2465
  "description": "Pagination page number",
@@ -2388,10 +2481,7 @@
2388
2481
  "200": {
2389
2482
  "description": "OK",
2390
2483
  "schema": {
2391
- "items": {
2392
- "$ref": "#/definitions/dto.Forks"
2393
- },
2394
- "type": "array"
2484
+ "$ref": "#/definitions/dto.ListForks"
2395
2485
  }
2396
2486
  }
2397
2487
  },
@@ -3018,7 +3108,7 @@
3018
3108
  "in": "path",
3019
3109
  "name": "sha1",
3020
3110
  "required": true,
3021
- "type": "integer"
3111
+ "type": "string"
3022
3112
  },
3023
3113
  {
3024
3114
  "description": "upload token",
@@ -3075,7 +3165,7 @@
3075
3165
  "in": "path",
3076
3166
  "name": "sha1",
3077
3167
  "required": true,
3078
- "type": "integer"
3168
+ "type": "string"
3079
3169
  },
3080
3170
  {
3081
3171
  "description": "Post Commit Asset Upload URL Form",
@@ -3137,7 +3227,7 @@
3137
3227
  "in": "path",
3138
3228
  "name": "asset_id",
3139
3229
  "required": true,
3140
- "type": "integer"
3230
+ "type": "string"
3141
3231
  }
3142
3232
  ],
3143
3233
  "responses": {
@@ -4090,6 +4180,18 @@
4090
4180
  "name": "updated_time_end",
4091
4181
  "type": "string"
4092
4182
  },
4183
+ {
4184
+ "description": "issue filter close time begin example: 2022-01-31",
4185
+ "in": "query",
4186
+ "name": "close_time_begin",
4187
+ "type": "string"
4188
+ },
4189
+ {
4190
+ "description": "issue filter close time end, example: 2022-01-31",
4191
+ "in": "query",
4192
+ "name": "close_time_end",
4193
+ "type": "string"
4194
+ },
4093
4195
  {
4094
4196
  "description": "issue order, example: created_at, -updated_at, reference_count。‘-’ prefix means descending order",
4095
4197
  "in": "query",
@@ -4272,13 +4374,13 @@
4272
4374
  "path": "/{repo}/-/issues/{number}",
4273
4375
  "method": "patch"
4274
4376
  },
4275
- "repo.issues.comments.list": {
4276
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
4277
- "operationId": "ListIssueComments",
4377
+ "repo.issues.assignees.delete": {
4378
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4379
+ "operationId": "DeleteIssueAssignees",
4278
4380
  "tags": [
4279
4381
  "Issues"
4280
4382
  ],
4281
- "summary": "查询仓库的 Issue 评论列表。List repository issue comments.",
4383
+ "summary": "删除 Issue 中的 Assignees。 Removes one or more assignees from an issue.",
4282
4384
  "parameters": [
4283
4385
  {
4284
4386
  "description": "repo",
@@ -4292,86 +4394,23 @@
4292
4394
  "in": "path",
4293
4395
  "name": "number",
4294
4396
  "required": true,
4295
- "type": "integer"
4296
- },
4297
- {
4298
- "default": 1,
4299
- "description": "pagination page number",
4300
- "in": "query",
4301
- "name": "page",
4302
- "type": "integer"
4303
- },
4304
- {
4305
- "default": 30,
4306
- "description": "pagination page size",
4307
- "in": "query",
4308
- "name": "page_size",
4309
- "type": "integer"
4310
- }
4311
- ],
4312
- "responses": {
4313
- "200": {
4314
- "description": "OK",
4315
- "schema": {
4316
- "items": {
4317
- "$ref": "#/definitions/api.IssueComment"
4318
- },
4319
- "type": "array"
4320
- }
4321
- },
4322
- "404": {
4323
- "description": "Not Found",
4324
- "schema": {
4325
- "$ref": "#/definitions/die.WebError"
4326
- }
4327
- },
4328
- "500": {
4329
- "description": "Internal Server Error",
4330
- "schema": {
4331
- "$ref": "#/definitions/die.WebError"
4332
- }
4333
- }
4334
- },
4335
- "path": "/{repo}/-/issues/{number}/comments",
4336
- "method": "get"
4337
- },
4338
- "repo.issues.comments.post": {
4339
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4340
- "operationId": "PostIssueComment",
4341
- "tags": [
4342
- "Issues"
4343
- ],
4344
- "summary": "创建一个 Issue Comment。Create an issue comment.",
4345
- "parameters": [
4346
- {
4347
- "description": "repo",
4348
- "in": "path",
4349
- "name": "repo",
4350
- "required": true,
4351
4397
  "type": "string"
4352
4398
  },
4353
4399
  {
4354
- "description": "number",
4355
- "in": "path",
4356
- "name": "number",
4357
- "required": true,
4358
- "type": "integer"
4359
- },
4360
- {
4361
- "description": "Post Issue Comment Form",
4400
+ "description": "Delete Issue Assignees Form",
4362
4401
  "in": "body",
4363
- "name": "post_issue_comment_form",
4402
+ "name": "delete_issue_assignees_form",
4364
4403
  "required": true,
4365
4404
  "schema": {
4366
- "$ref": "#/definitions/api.PostIssueCommentForm"
4405
+ "$ref": "#/definitions/api.DeleteIssueAssigneesForm"
4367
4406
  }
4368
4407
  }
4369
4408
  ],
4370
4409
  "responses": {
4371
- "201": {
4372
- "description": "Created",
4410
+ "200": {
4411
+ "description": "OK",
4373
4412
  "schema": {
4374
- "$ref": "#/definitions/api.IssueComment"
4413
+ "$ref": "#/definitions/api.IssueDetail"
4375
4414
  }
4376
4415
  },
4377
4416
  "404": {
@@ -4387,16 +4426,16 @@
4387
4426
  }
4388
4427
  }
4389
4428
  },
4390
- "path": "/{repo}/-/issues/{number}/comments",
4391
- "method": "post"
4429
+ "path": "/{repo}/-/issues/{number}/assignees",
4430
+ "method": "delete"
4392
4431
  },
4393
- "repo.issues.comments.get": {
4432
+ "repo.issues.assignees.list": {
4394
4433
  "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
4395
- "operationId": "GetIssueComment",
4434
+ "operationId": "ListIssueAssignees",
4396
4435
  "tags": [
4397
4436
  "Issues"
4398
4437
  ],
4399
- "summary": "获取一个 Issue CommentGet an issue comment.",
4438
+ "summary": "查询指定 Issue 的 AssigneesList repository issue assignees.",
4400
4439
  "parameters": [
4401
4440
  {
4402
4441
  "description": "repo",
@@ -4406,25 +4445,21 @@
4406
4445
  "type": "string"
4407
4446
  },
4408
4447
  {
4409
- "description": "number",
4448
+ "description": "issue number",
4410
4449
  "in": "path",
4411
4450
  "name": "number",
4412
4451
  "required": true,
4413
- "type": "integer"
4414
- },
4415
- {
4416
- "description": "comment_id",
4417
- "in": "path",
4418
- "name": "comment_id",
4419
- "required": true,
4420
- "type": "integer"
4452
+ "type": "string"
4421
4453
  }
4422
4454
  ],
4423
4455
  "responses": {
4424
4456
  "200": {
4425
4457
  "description": "OK",
4426
4458
  "schema": {
4427
- "$ref": "#/definitions/api.IssueComment"
4459
+ "items": {
4460
+ "$ref": "#/definitions/git_woa_com_cnb_monorepo_git_internal_app_vcs_service_bff_api.UserInfo"
4461
+ },
4462
+ "type": "array"
4428
4463
  }
4429
4464
  },
4430
4465
  "404": {
@@ -4440,16 +4475,16 @@
4440
4475
  }
4441
4476
  }
4442
4477
  },
4443
- "path": "/{repo}/-/issues/{number}/comments/{comment_id}",
4478
+ "path": "/{repo}/-/issues/{number}/assignees",
4444
4479
  "method": "get"
4445
4480
  },
4446
- "repo.issues.comments.patch": {
4481
+ "repo.issues.assignees.post": {
4447
4482
  "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4448
- "operationId": "PatchIssueComment",
4483
+ "operationId": "PostIssueAssignees",
4449
4484
  "tags": [
4450
4485
  "Issues"
4451
4486
  ],
4452
- "summary": "修改一个 Issue CommentUpdate an issue comment.",
4487
+ "summary": "添加 Assignees 到指定的 Issue。 Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.",
4453
4488
  "parameters": [
4454
4489
  {
4455
4490
  "description": "repo",
@@ -4459,34 +4494,27 @@
4459
4494
  "type": "string"
4460
4495
  },
4461
4496
  {
4462
- "description": "number",
4497
+ "description": "issue number",
4463
4498
  "in": "path",
4464
4499
  "name": "number",
4465
4500
  "required": true,
4466
- "type": "integer"
4467
- },
4468
- {
4469
- "description": "comment_id",
4470
- "in": "path",
4471
- "name": "comment_id",
4472
- "required": true,
4473
- "type": "integer"
4501
+ "type": "string"
4474
4502
  },
4475
4503
  {
4476
- "description": "Patch Issue Comment Form",
4504
+ "description": "Post Issue Assignees Form",
4477
4505
  "in": "body",
4478
- "name": "patch_issue_comment_form",
4506
+ "name": "post_issue_assignees_form",
4479
4507
  "required": true,
4480
4508
  "schema": {
4481
- "$ref": "#/definitions/api.PatchIssueCommentForm"
4509
+ "$ref": "#/definitions/api.PostIssueAssigneesForm"
4482
4510
  }
4483
4511
  }
4484
4512
  ],
4485
4513
  "responses": {
4486
- "200": {
4487
- "description": "OK",
4514
+ "201": {
4515
+ "description": "Created",
4488
4516
  "schema": {
4489
- "$ref": "#/definitions/api.IssueComment"
4517
+ "$ref": "#/definitions/api.IssueDetail"
4490
4518
  }
4491
4519
  },
4492
4520
  "404": {
@@ -4502,16 +4530,16 @@
4502
4530
  }
4503
4531
  }
4504
4532
  },
4505
- "path": "/{repo}/-/issues/{number}/comments/{comment_id}",
4506
- "method": "patch"
4533
+ "path": "/{repo}/-/issues/{number}/assignees",
4534
+ "method": "post"
4507
4535
  },
4508
- "repo.issues.labels.delete": {
4509
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4510
- "operationId": "DeleteIssueLabels",
4536
+ "repo.issues.assignees.get": {
4537
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
4538
+ "operationId": "CanUserBeAssignedToIssue",
4511
4539
  "tags": [
4512
4540
  "Issues"
4513
4541
  ],
4514
- "summary": "清空 Issue 标签。Remove all labels from an issue.",
4542
+ "summary": "检查用户是否可以被添加到 Issue Assignees 中。 Checks if a user can be assigned to an issue.",
4515
4543
  "parameters": [
4516
4544
  {
4517
4545
  "description": "repo",
@@ -4521,11 +4549,18 @@
4521
4549
  "type": "string"
4522
4550
  },
4523
4551
  {
4524
- "description": "number",
4552
+ "description": "issue number",
4525
4553
  "in": "path",
4526
4554
  "name": "number",
4527
4555
  "required": true,
4528
- "type": "integer"
4556
+ "type": "string"
4557
+ },
4558
+ {
4559
+ "description": "assignee",
4560
+ "in": "path",
4561
+ "name": "assignee",
4562
+ "required": true,
4563
+ "type": "string"
4529
4564
  }
4530
4565
  ],
4531
4566
  "responses": {
@@ -4545,16 +4580,16 @@
4545
4580
  }
4546
4581
  }
4547
4582
  },
4548
- "path": "/{repo}/-/issues/{number}/labels",
4549
- "method": "delete"
4583
+ "path": "/{repo}/-/issues/{number}/assignees/{assignee}",
4584
+ "method": "get"
4550
4585
  },
4551
- "repo.issues.labels.list": {
4586
+ "repo.issues.comments.list": {
4552
4587
  "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
4553
- "operationId": "ListIssueLabels",
4588
+ "operationId": "ListIssueComments",
4554
4589
  "tags": [
4555
4590
  "Issues"
4556
4591
  ],
4557
- "summary": "查询 Issue 的标签(label) 列表。List labels for an issue.",
4592
+ "summary": "查询仓库的 Issue 评论列表。List repository issue comments.",
4558
4593
  "parameters": [
4559
4594
  {
4560
4595
  "description": "repo",
@@ -4564,7 +4599,7 @@
4564
4599
  "type": "string"
4565
4600
  },
4566
4601
  {
4567
- "description": "number",
4602
+ "description": "issue number",
4568
4603
  "in": "path",
4569
4604
  "name": "number",
4570
4605
  "required": true,
@@ -4590,7 +4625,7 @@
4590
4625
  "description": "OK",
4591
4626
  "schema": {
4592
4627
  "items": {
4593
- "$ref": "#/definitions/api.Label"
4628
+ "$ref": "#/definitions/api.IssueComment"
4594
4629
  },
4595
4630
  "type": "array"
4596
4631
  }
@@ -4608,7 +4643,283 @@
4608
4643
  }
4609
4644
  }
4610
4645
  },
4611
- "path": "/{repo}/-/issues/{number}/labels",
4646
+ "path": "/{repo}/-/issues/{number}/comments",
4647
+ "method": "get"
4648
+ },
4649
+ "repo.issues.comments.post": {
4650
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4651
+ "operationId": "PostIssueComment",
4652
+ "tags": [
4653
+ "Issues"
4654
+ ],
4655
+ "summary": "创建一个 Issue Comment。Create an issue comment.",
4656
+ "parameters": [
4657
+ {
4658
+ "description": "repo",
4659
+ "in": "path",
4660
+ "name": "repo",
4661
+ "required": true,
4662
+ "type": "string"
4663
+ },
4664
+ {
4665
+ "description": "number",
4666
+ "in": "path",
4667
+ "name": "number",
4668
+ "required": true,
4669
+ "type": "integer"
4670
+ },
4671
+ {
4672
+ "description": "Post Issue Comment Form",
4673
+ "in": "body",
4674
+ "name": "post_issue_comment_form",
4675
+ "required": true,
4676
+ "schema": {
4677
+ "$ref": "#/definitions/api.PostIssueCommentForm"
4678
+ }
4679
+ }
4680
+ ],
4681
+ "responses": {
4682
+ "201": {
4683
+ "description": "Created",
4684
+ "schema": {
4685
+ "$ref": "#/definitions/api.IssueComment"
4686
+ }
4687
+ },
4688
+ "404": {
4689
+ "description": "Not Found",
4690
+ "schema": {
4691
+ "$ref": "#/definitions/die.WebError"
4692
+ }
4693
+ },
4694
+ "500": {
4695
+ "description": "Internal Server Error",
4696
+ "schema": {
4697
+ "$ref": "#/definitions/die.WebError"
4698
+ }
4699
+ }
4700
+ },
4701
+ "path": "/{repo}/-/issues/{number}/comments",
4702
+ "method": "post"
4703
+ },
4704
+ "repo.issues.comments.get": {
4705
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
4706
+ "operationId": "GetIssueComment",
4707
+ "tags": [
4708
+ "Issues"
4709
+ ],
4710
+ "summary": "获取一个 Issue Comment。Get an issue comment.",
4711
+ "parameters": [
4712
+ {
4713
+ "description": "repo",
4714
+ "in": "path",
4715
+ "name": "repo",
4716
+ "required": true,
4717
+ "type": "string"
4718
+ },
4719
+ {
4720
+ "description": "number",
4721
+ "in": "path",
4722
+ "name": "number",
4723
+ "required": true,
4724
+ "type": "string"
4725
+ },
4726
+ {
4727
+ "description": "comment_id",
4728
+ "in": "path",
4729
+ "name": "comment_id",
4730
+ "required": true,
4731
+ "type": "string"
4732
+ }
4733
+ ],
4734
+ "responses": {
4735
+ "200": {
4736
+ "description": "OK",
4737
+ "schema": {
4738
+ "$ref": "#/definitions/api.IssueComment"
4739
+ }
4740
+ },
4741
+ "404": {
4742
+ "description": "Not Found",
4743
+ "schema": {
4744
+ "$ref": "#/definitions/die.WebError"
4745
+ }
4746
+ },
4747
+ "500": {
4748
+ "description": "Internal Server Error",
4749
+ "schema": {
4750
+ "$ref": "#/definitions/die.WebError"
4751
+ }
4752
+ }
4753
+ },
4754
+ "path": "/{repo}/-/issues/{number}/comments/{comment_id}",
4755
+ "method": "get"
4756
+ },
4757
+ "repo.issues.comments.patch": {
4758
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4759
+ "operationId": "PatchIssueComment",
4760
+ "tags": [
4761
+ "Issues"
4762
+ ],
4763
+ "summary": "修改一个 Issue Comment。Update an issue comment.",
4764
+ "parameters": [
4765
+ {
4766
+ "description": "repo",
4767
+ "in": "path",
4768
+ "name": "repo",
4769
+ "required": true,
4770
+ "type": "string"
4771
+ },
4772
+ {
4773
+ "description": "number",
4774
+ "in": "path",
4775
+ "name": "number",
4776
+ "required": true,
4777
+ "type": "integer"
4778
+ },
4779
+ {
4780
+ "description": "comment_id",
4781
+ "in": "path",
4782
+ "name": "comment_id",
4783
+ "required": true,
4784
+ "type": "integer"
4785
+ },
4786
+ {
4787
+ "description": "Patch Issue Comment Form",
4788
+ "in": "body",
4789
+ "name": "patch_issue_comment_form",
4790
+ "required": true,
4791
+ "schema": {
4792
+ "$ref": "#/definitions/api.PatchIssueCommentForm"
4793
+ }
4794
+ }
4795
+ ],
4796
+ "responses": {
4797
+ "200": {
4798
+ "description": "OK",
4799
+ "schema": {
4800
+ "$ref": "#/definitions/api.IssueComment"
4801
+ }
4802
+ },
4803
+ "404": {
4804
+ "description": "Not Found",
4805
+ "schema": {
4806
+ "$ref": "#/definitions/die.WebError"
4807
+ }
4808
+ },
4809
+ "500": {
4810
+ "description": "Internal Server Error",
4811
+ "schema": {
4812
+ "$ref": "#/definitions/die.WebError"
4813
+ }
4814
+ }
4815
+ },
4816
+ "path": "/{repo}/-/issues/{number}/comments/{comment_id}",
4817
+ "method": "patch"
4818
+ },
4819
+ "repo.issues.labels.delete": {
4820
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4821
+ "operationId": "DeleteIssueLabels",
4822
+ "tags": [
4823
+ "Issues"
4824
+ ],
4825
+ "summary": "清空 Issue 标签。Remove all labels from an issue.",
4826
+ "parameters": [
4827
+ {
4828
+ "description": "repo",
4829
+ "in": "path",
4830
+ "name": "repo",
4831
+ "required": true,
4832
+ "type": "string"
4833
+ },
4834
+ {
4835
+ "description": "number",
4836
+ "in": "path",
4837
+ "name": "number",
4838
+ "required": true,
4839
+ "type": "integer"
4840
+ }
4841
+ ],
4842
+ "responses": {
4843
+ "204": {
4844
+ "description": "No Content"
4845
+ },
4846
+ "404": {
4847
+ "description": "Not Found",
4848
+ "schema": {
4849
+ "$ref": "#/definitions/die.WebError"
4850
+ }
4851
+ },
4852
+ "500": {
4853
+ "description": "Internal Server Error",
4854
+ "schema": {
4855
+ "$ref": "#/definitions/die.WebError"
4856
+ }
4857
+ }
4858
+ },
4859
+ "path": "/{repo}/-/issues/{number}/labels",
4860
+ "method": "delete"
4861
+ },
4862
+ "repo.issues.labels.list": {
4863
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
4864
+ "operationId": "ListIssueLabels",
4865
+ "tags": [
4866
+ "Issues"
4867
+ ],
4868
+ "summary": "查询 Issue 的标签(label) 列表。List labels for an issue.",
4869
+ "parameters": [
4870
+ {
4871
+ "description": "repo",
4872
+ "in": "path",
4873
+ "name": "repo",
4874
+ "required": true,
4875
+ "type": "string"
4876
+ },
4877
+ {
4878
+ "description": "number",
4879
+ "in": "path",
4880
+ "name": "number",
4881
+ "required": true,
4882
+ "type": "integer"
4883
+ },
4884
+ {
4885
+ "default": 1,
4886
+ "description": "pagination page number",
4887
+ "in": "query",
4888
+ "name": "page",
4889
+ "type": "integer"
4890
+ },
4891
+ {
4892
+ "default": 30,
4893
+ "description": "pagination page size",
4894
+ "in": "query",
4895
+ "name": "page_size",
4896
+ "type": "integer"
4897
+ }
4898
+ ],
4899
+ "responses": {
4900
+ "200": {
4901
+ "description": "OK",
4902
+ "schema": {
4903
+ "items": {
4904
+ "$ref": "#/definitions/api.Label"
4905
+ },
4906
+ "type": "array"
4907
+ }
4908
+ },
4909
+ "404": {
4910
+ "description": "Not Found",
4911
+ "schema": {
4912
+ "$ref": "#/definitions/die.WebError"
4913
+ }
4914
+ },
4915
+ "500": {
4916
+ "description": "Internal Server Error",
4917
+ "schema": {
4918
+ "$ref": "#/definitions/die.WebError"
4919
+ }
4920
+ }
4921
+ },
4922
+ "path": "/{repo}/-/issues/{number}/labels",
4612
4923
  "method": "get"
4613
4924
  },
4614
4925
  "repo.issues.labels.post": {
@@ -4925,47 +5236,94 @@
4925
5236
  }
4926
5237
  },
4927
5238
  "path": "/{repo}/-/labels/{name}",
4928
- "method": "delete"
5239
+ "method": "delete"
5240
+ },
5241
+ "repo.labels.patch": {
5242
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
5243
+ "operationId": "PatchLabel",
5244
+ "tags": [
5245
+ "RepoLabels"
5246
+ ],
5247
+ "summary": "更新标签信息。Update label information.",
5248
+ "parameters": [
5249
+ {
5250
+ "description": "repo",
5251
+ "in": "path",
5252
+ "name": "repo",
5253
+ "required": true,
5254
+ "type": "string"
5255
+ },
5256
+ {
5257
+ "description": "label name",
5258
+ "in": "path",
5259
+ "name": "name",
5260
+ "required": true,
5261
+ "type": "string"
5262
+ },
5263
+ {
5264
+ "description": "Patch Label Form",
5265
+ "in": "body",
5266
+ "name": "patch_label_form",
5267
+ "required": true,
5268
+ "schema": {
5269
+ "$ref": "#/definitions/api.PatchLabelForm"
5270
+ }
5271
+ }
5272
+ ],
5273
+ "responses": {
5274
+ "200": {
5275
+ "description": "OK",
5276
+ "schema": {
5277
+ "$ref": "#/definitions/api.Label"
5278
+ }
5279
+ },
5280
+ "404": {
5281
+ "description": "Not Found",
5282
+ "schema": {
5283
+ "$ref": "#/definitions/die.WebError"
5284
+ }
5285
+ },
5286
+ "500": {
5287
+ "description": "Internal Server Error",
5288
+ "schema": {
5289
+ "$ref": "#/definitions/die.WebError"
5290
+ }
5291
+ }
5292
+ },
5293
+ "path": "/{repo}/-/labels/{name}",
5294
+ "method": "patch"
4929
5295
  },
4930
- "repo.labels.patch": {
4931
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4932
- "operationId": "PatchLabel",
5296
+ "repo.lfs.get": {
5297
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
5298
+ "operationId": "GetPresignedLFSDownloadLink",
4933
5299
  "tags": [
4934
- "RepoLabels"
5300
+ "Git"
4935
5301
  ],
4936
- "summary": "更新标签信息。Update label information.",
5302
+ "summary": "获取 git lfs 文件下载链接",
4937
5303
  "parameters": [
4938
5304
  {
4939
- "description": "repo",
5305
+ "description": "slug",
4940
5306
  "in": "path",
4941
5307
  "name": "repo",
4942
5308
  "required": true,
4943
5309
  "type": "string"
4944
5310
  },
4945
5311
  {
4946
- "description": "label name",
5312
+ "description": "lfs oid",
4947
5313
  "in": "path",
4948
- "name": "name",
5314
+ "name": "oid",
4949
5315
  "required": true,
4950
5316
  "type": "string"
4951
5317
  },
4952
5318
  {
4953
- "description": "Patch Label Form",
4954
- "in": "body",
4955
- "name": "patch_label_form",
5319
+ "description": "download filename",
5320
+ "in": "query",
5321
+ "name": "name",
4956
5322
  "required": true,
4957
- "schema": {
4958
- "$ref": "#/definitions/api.PatchLabelForm"
4959
- }
5323
+ "type": "string"
4960
5324
  }
4961
5325
  ],
4962
5326
  "responses": {
4963
- "200": {
4964
- "description": "OK",
4965
- "schema": {
4966
- "$ref": "#/definitions/api.Label"
4967
- }
4968
- },
4969
5327
  "404": {
4970
5328
  "description": "Not Found",
4971
5329
  "schema": {
@@ -4979,8 +5337,8 @@
4979
5337
  }
4980
5338
  }
4981
5339
  },
4982
- "path": "/{repo}/-/labels/{name}",
4983
- "method": "patch"
5340
+ "path": "/{repo}/-/lfs/{oid}",
5341
+ "method": "get"
4984
5342
  },
4985
5343
  "repo.listMembers.list": {
4986
5344
  "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
@@ -5658,7 +6016,7 @@
5658
6016
  "in": "path",
5659
6017
  "name": "number",
5660
6018
  "required": true,
5661
- "type": "integer"
6019
+ "type": "string"
5662
6020
  }
5663
6021
  ],
5664
6022
  "responses": {
@@ -5704,7 +6062,7 @@
5704
6062
  "in": "path",
5705
6063
  "name": "number",
5706
6064
  "required": true,
5707
- "type": "integer"
6065
+ "type": "string"
5708
6066
  },
5709
6067
  {
5710
6068
  "description": "Update Pull Request Form",
@@ -5739,6 +6097,215 @@
5739
6097
  "path": "/{repo}/-/pulls/{number}",
5740
6098
  "method": "patch"
5741
6099
  },
6100
+ "repo.pulls.assignees.delete": {
6101
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
6102
+ "operationId": "DeletePullAssignees",
6103
+ "tags": [
6104
+ "Pulls"
6105
+ ],
6106
+ "summary": "删除 PullRequest 中的 Assignees。 Removes one or more assignees from a pull request.",
6107
+ "parameters": [
6108
+ {
6109
+ "description": "repo",
6110
+ "in": "path",
6111
+ "name": "repo",
6112
+ "required": true,
6113
+ "type": "string"
6114
+ },
6115
+ {
6116
+ "description": "number",
6117
+ "in": "path",
6118
+ "name": "number",
6119
+ "required": true,
6120
+ "type": "string"
6121
+ },
6122
+ {
6123
+ "description": "Delete Pull Assignees Form",
6124
+ "in": "body",
6125
+ "name": "delete_pull_assignees_form",
6126
+ "required": true,
6127
+ "schema": {
6128
+ "$ref": "#/definitions/api.DeletePullAssigneesForm"
6129
+ }
6130
+ }
6131
+ ],
6132
+ "responses": {
6133
+ "200": {
6134
+ "description": "OK",
6135
+ "schema": {
6136
+ "$ref": "#/definitions/api.Pull"
6137
+ }
6138
+ },
6139
+ "404": {
6140
+ "description": "Not Found",
6141
+ "schema": {
6142
+ "$ref": "#/definitions/die.WebError"
6143
+ }
6144
+ },
6145
+ "500": {
6146
+ "description": "Internal Server Error",
6147
+ "schema": {
6148
+ "$ref": "#/definitions/die.WebError"
6149
+ }
6150
+ }
6151
+ },
6152
+ "path": "/{repo}/-/pulls/{number}/assignees",
6153
+ "method": "delete"
6154
+ },
6155
+ "repo.pulls.assignees.list": {
6156
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
6157
+ "operationId": "ListPullAssignees",
6158
+ "tags": [
6159
+ "Pulls"
6160
+ ],
6161
+ "summary": "查询指定 PullRequest 的 Assignees。List repository pull request assignees.",
6162
+ "parameters": [
6163
+ {
6164
+ "description": "repo",
6165
+ "in": "path",
6166
+ "name": "repo",
6167
+ "required": true,
6168
+ "type": "string"
6169
+ },
6170
+ {
6171
+ "description": "pull request number",
6172
+ "in": "path",
6173
+ "name": "number",
6174
+ "required": true,
6175
+ "type": "string"
6176
+ }
6177
+ ],
6178
+ "responses": {
6179
+ "200": {
6180
+ "description": "OK",
6181
+ "schema": {
6182
+ "items": {
6183
+ "$ref": "#/definitions/git_woa_com_cnb_monorepo_git_internal_app_git_service_bff_api.UserInfo"
6184
+ },
6185
+ "type": "array"
6186
+ }
6187
+ },
6188
+ "404": {
6189
+ "description": "Not Found",
6190
+ "schema": {
6191
+ "$ref": "#/definitions/die.WebError"
6192
+ }
6193
+ },
6194
+ "500": {
6195
+ "description": "Internal Server Error",
6196
+ "schema": {
6197
+ "$ref": "#/definitions/die.WebError"
6198
+ }
6199
+ }
6200
+ },
6201
+ "path": "/{repo}/-/pulls/{number}/assignees",
6202
+ "method": "get"
6203
+ },
6204
+ "repo.pulls.assignees.post": {
6205
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
6206
+ "operationId": "PostPullAssignees",
6207
+ "tags": [
6208
+ "Pulls"
6209
+ ],
6210
+ "summary": "添加 Assignees 到指定的 PullRequest。 Adds up to 10 assignees to a pull request. Users already assigned to an issue are not replaced.",
6211
+ "parameters": [
6212
+ {
6213
+ "description": "repo",
6214
+ "in": "path",
6215
+ "name": "repo",
6216
+ "required": true,
6217
+ "type": "string"
6218
+ },
6219
+ {
6220
+ "description": "number",
6221
+ "in": "path",
6222
+ "name": "number",
6223
+ "required": true,
6224
+ "type": "string"
6225
+ },
6226
+ {
6227
+ "description": "Post Pull Assignees Form",
6228
+ "in": "body",
6229
+ "name": "post_pull_assignees_form",
6230
+ "required": true,
6231
+ "schema": {
6232
+ "$ref": "#/definitions/api.PostPullAssigneesForm"
6233
+ }
6234
+ }
6235
+ ],
6236
+ "responses": {
6237
+ "201": {
6238
+ "description": "Created",
6239
+ "schema": {
6240
+ "$ref": "#/definitions/api.Pull"
6241
+ }
6242
+ },
6243
+ "404": {
6244
+ "description": "Not Found",
6245
+ "schema": {
6246
+ "$ref": "#/definitions/die.WebError"
6247
+ }
6248
+ },
6249
+ "500": {
6250
+ "description": "Internal Server Error",
6251
+ "schema": {
6252
+ "$ref": "#/definitions/die.WebError"
6253
+ }
6254
+ }
6255
+ },
6256
+ "path": "/{repo}/-/pulls/{number}/assignees",
6257
+ "method": "post"
6258
+ },
6259
+ "repo.pulls.assignees.get": {
6260
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
6261
+ "operationId": "CanUserBeAssignedToPull",
6262
+ "tags": [
6263
+ "Pulls"
6264
+ ],
6265
+ "summary": "检查用户是否可以被添加到 PullRequest 的 Assignees 中。 Checks if a user can be assigned to a pull request.",
6266
+ "parameters": [
6267
+ {
6268
+ "description": "repo",
6269
+ "in": "path",
6270
+ "name": "repo",
6271
+ "required": true,
6272
+ "type": "string"
6273
+ },
6274
+ {
6275
+ "description": "number",
6276
+ "in": "path",
6277
+ "name": "number",
6278
+ "required": true,
6279
+ "type": "string"
6280
+ },
6281
+ {
6282
+ "description": "assignee",
6283
+ "in": "path",
6284
+ "name": "assignee",
6285
+ "required": true,
6286
+ "type": "string"
6287
+ }
6288
+ ],
6289
+ "responses": {
6290
+ "204": {
6291
+ "description": "No Content"
6292
+ },
6293
+ "404": {
6294
+ "description": "Not Found",
6295
+ "schema": {
6296
+ "$ref": "#/definitions/die.WebError"
6297
+ }
6298
+ },
6299
+ "500": {
6300
+ "description": "Internal Server Error",
6301
+ "schema": {
6302
+ "$ref": "#/definitions/die.WebError"
6303
+ }
6304
+ }
6305
+ },
6306
+ "path": "/{repo}/-/pulls/{number}/assignees/{assignee}",
6307
+ "method": "get"
6308
+ },
5742
6309
  "repo.pulls.comments.list": {
5743
6310
  "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
5744
6311
  "operationId": "ListPullComments",
@@ -5822,7 +6389,7 @@
5822
6389
  "in": "path",
5823
6390
  "name": "number",
5824
6391
  "required": true,
5825
- "type": "integer"
6392
+ "type": "string"
5826
6393
  },
5827
6394
  {
5828
6395
  "description": "Post Pull Request Comment Form",
@@ -5874,7 +6441,7 @@
5874
6441
  "in": "path",
5875
6442
  "name": "number",
5876
6443
  "required": true,
5877
- "type": "integer"
6444
+ "type": "string"
5878
6445
  }
5879
6446
  ],
5880
6447
  "responses": {
@@ -5917,7 +6484,7 @@
5917
6484
  "in": "path",
5918
6485
  "name": "number",
5919
6486
  "required": true,
5920
- "type": "integer"
6487
+ "type": "string"
5921
6488
  },
5922
6489
  {
5923
6490
  "default": 1,
@@ -5980,7 +6547,7 @@
5980
6547
  "in": "path",
5981
6548
  "name": "number",
5982
6549
  "required": true,
5983
- "type": "integer"
6550
+ "type": "string"
5984
6551
  },
5985
6552
  {
5986
6553
  "description": "Post Pull Labels Form",
@@ -6035,7 +6602,7 @@
6035
6602
  "in": "path",
6036
6603
  "name": "number",
6037
6604
  "required": true,
6038
- "type": "integer"
6605
+ "type": "string"
6039
6606
  },
6040
6607
  {
6041
6608
  "description": "Put Pull Labels Form",
@@ -6090,7 +6657,7 @@
6090
6657
  "in": "path",
6091
6658
  "name": "number",
6092
6659
  "required": true,
6093
- "type": "integer"
6660
+ "type": "string"
6094
6661
  },
6095
6662
  {
6096
6663
  "description": "label name",
@@ -6143,7 +6710,7 @@
6143
6710
  "in": "path",
6144
6711
  "name": "number",
6145
6712
  "required": true,
6146
- "type": "integer"
6713
+ "type": "string"
6147
6714
  },
6148
6715
  {
6149
6716
  "description": "Merge Pull Request Form",
@@ -6198,7 +6765,7 @@
6198
6765
  "in": "path",
6199
6766
  "name": "number",
6200
6767
  "required": true,
6201
- "type": "integer"
6768
+ "type": "string"
6202
6769
  },
6203
6770
  {
6204
6771
  "description": "Post Pull Review Form",
@@ -6509,7 +7076,7 @@
6509
7076
  "in": "path",
6510
7077
  "name": "release_id",
6511
7078
  "required": true,
6512
- "type": "integer"
7079
+ "type": "string"
6513
7080
  }
6514
7081
  ],
6515
7082
  "responses": {
@@ -6552,7 +7119,7 @@
6552
7119
  "in": "path",
6553
7120
  "name": "release_id",
6554
7121
  "required": true,
6555
- "type": "integer"
7122
+ "type": "string"
6556
7123
  }
6557
7124
  ],
6558
7125
  "responses": {
@@ -6598,7 +7165,7 @@
6598
7165
  "in": "path",
6599
7166
  "name": "release_id",
6600
7167
  "required": true,
6601
- "type": "integer"
7168
+ "type": "string"
6602
7169
  },
6603
7170
  {
6604
7171
  "description": "patch release form",
@@ -6650,7 +7217,7 @@
6650
7217
  "in": "path",
6651
7218
  "name": "release_id",
6652
7219
  "required": true,
6653
- "type": "integer"
7220
+ "type": "string"
6654
7221
  },
6655
7222
  {
6656
7223
  "description": "upload token",
@@ -6707,7 +7274,7 @@
6707
7274
  "in": "path",
6708
7275
  "name": "release_id",
6709
7276
  "required": true,
6710
- "type": "integer"
7277
+ "type": "string"
6711
7278
  },
6712
7279
  {
6713
7280
  "description": "Post Release Asset Upload URL Form",
@@ -6762,14 +7329,14 @@
6762
7329
  "in": "path",
6763
7330
  "name": "release_id",
6764
7331
  "required": true,
6765
- "type": "integer"
7332
+ "type": "string"
6766
7333
  },
6767
7334
  {
6768
7335
  "description": "asset id",
6769
7336
  "in": "path",
6770
7337
  "name": "asset_id",
6771
7338
  "required": true,
6772
- "type": "integer"
7339
+ "type": "string"
6773
7340
  }
6774
7341
  ],
6775
7342
  "responses": {
@@ -6812,14 +7379,14 @@
6812
7379
  "in": "path",
6813
7380
  "name": "release_id",
6814
7381
  "required": true,
6815
- "type": "integer"
7382
+ "type": "string"
6816
7383
  },
6817
7384
  {
6818
7385
  "description": "asset id",
6819
7386
  "in": "path",
6820
7387
  "name": "asset_id",
6821
7388
  "required": true,
6822
- "type": "integer"
7389
+ "type": "string"
6823
7390
  }
6824
7391
  ],
6825
7392
  "responses": {
@@ -7496,7 +8063,7 @@
7496
8063
  "tags": [
7497
8064
  "Assets"
7498
8065
  ],
7499
- "summary": "发起一个上传 release 附件的请求,返回上传 cos 的 url 和 form 内容。Initiate a request to upload release attachments, returns COS upload URL and form data.",
8066
+ "summary": "发起一个上传 release 附件的请求,返回上传 cos 的 url Initiate a request to upload release attachments,",
7500
8067
  "parameters": [
7501
8068
  {
7502
8069
  "default": "test-group/test-repo",