node-cnb 1.19.0 → 1.21.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
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "type": "string",
18
- "description": "动态日期,格式为yy-mm-dd-h, eg:2025-09-11-5",
18
+ "description": "动态日期,支持按天或小时为维度获取,格式为yy-mm-dd-h or yy-mm-dd, eg:2025-09-11-5",
19
19
  "name": "date",
20
20
  "in": "path",
21
21
  "required": true
@@ -140,6 +140,7 @@
140
140
  },
141
141
  {
142
142
  "enum": [
143
+ "Guest",
143
144
  "Reporter",
144
145
  "Developer",
145
146
  "Master",
@@ -385,6 +386,7 @@
385
386
  },
386
387
  {
387
388
  "enum": [
389
+ "Guest",
388
390
  "Reporter",
389
391
  "Developer",
390
392
  "Master",
@@ -850,6 +852,7 @@
850
852
  },
851
853
  {
852
854
  "enum": [
855
+ "Guest",
853
856
  "Reporter",
854
857
  "Developer",
855
858
  "Master",
@@ -1040,7 +1043,7 @@
1040
1043
  {
1041
1044
  "type": "integer",
1042
1045
  "description": "Pagination page size, default(20), max(100)",
1043
- "name": "pageSize",
1046
+ "name": "page_size",
1044
1047
  "in": "query"
1045
1048
  },
1046
1049
  {
@@ -2071,6 +2074,44 @@
2071
2074
  "path": "/{repo}/-/ai/chat/completions",
2072
2075
  "method": "post"
2073
2076
  },
2077
+ "repo.assets.delete": {
2078
+ "description": "通过 asset 记录 id 删除一个 asset,release和commit附件不能通过该接口删除\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
2079
+ "tags": [
2080
+ "Assets"
2081
+ ],
2082
+ "summary": "通过 asset 记录 id 删除一个 asset",
2083
+ "operationId": "DeleteAsset",
2084
+ "parameters": [
2085
+ {
2086
+ "type": "string",
2087
+ "description": "repo",
2088
+ "name": "repo",
2089
+ "in": "path",
2090
+ "required": true
2091
+ },
2092
+ {
2093
+ "type": "integer",
2094
+ "format": "int64",
2095
+ "description": "asset id",
2096
+ "name": "assetID",
2097
+ "in": "path",
2098
+ "required": true
2099
+ }
2100
+ ],
2101
+ "responses": {
2102
+ "200": {
2103
+ "description": "OK"
2104
+ },
2105
+ "422": {
2106
+ "description": "release和commit附件不能通过该接口删除",
2107
+ "schema": {
2108
+ "$ref": "#/definitions/die.WebError"
2109
+ }
2110
+ }
2111
+ },
2112
+ "path": "/{repo}/-/assets/{assetID}",
2113
+ "method": "delete"
2114
+ },
2074
2115
  "repo.badge.git.get": {
2075
2116
  "tags": [
2076
2117
  "Badge"
@@ -2304,7 +2345,7 @@
2304
2345
  {
2305
2346
  "type": "integer",
2306
2347
  "description": "Pagination page size, default(30), max(100)",
2307
- "name": "pagesize",
2348
+ "name": "page_size",
2308
2349
  "in": "query"
2309
2350
  },
2310
2351
  {
@@ -2597,21 +2638,21 @@
2597
2638
  "parameters": [
2598
2639
  {
2599
2640
  "type": "string",
2600
- "description": "Repo",
2641
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
2601
2642
  "name": "repo",
2602
2643
  "in": "path",
2603
2644
  "required": true
2604
2645
  },
2605
2646
  {
2606
2647
  "type": "string",
2607
- "description": "commit hash,eg: 3bba1ce6a8c35ee1264c7449f4f0b512bd751eac",
2648
+ "description": "提交的哈希值。",
2608
2649
  "name": "commit_id",
2609
2650
  "in": "path",
2610
2651
  "required": true
2611
2652
  },
2612
2653
  {
2613
2654
  "type": "string",
2614
- "description": "filename,eg: test.png",
2655
+ "description": "文件名称。示例:`test.png`",
2615
2656
  "name": "filename",
2616
2657
  "in": "path",
2617
2658
  "required": true
@@ -2619,7 +2660,7 @@
2619
2660
  {
2620
2661
  "type": "boolean",
2621
2662
  "default": false,
2622
- "description": "true 的话 302 的下载地址有效期为12个小时,但最多只能下载10",
2663
+ "description": "是否可以下载,true表示302的下载地址有效期12小时,最多下载10次。",
2623
2664
  "name": "share",
2624
2665
  "in": "query"
2625
2666
  }
@@ -2633,6 +2674,38 @@
2633
2674
  "path": "/{repo}/-/commit-assets/download/{commit_id}/{filename}",
2634
2675
  "method": "get"
2635
2676
  },
2677
+ "repo.files.delete": {
2678
+ "description": "删除 UploadFiles 上传的附件\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
2679
+ "tags": [
2680
+ "Pulls",
2681
+ "Issues"
2682
+ ],
2683
+ "summary": "删除 UploadFiles 上传的附件",
2684
+ "operationId": "DeleteRepoFiles",
2685
+ "parameters": [
2686
+ {
2687
+ "type": "string",
2688
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
2689
+ "name": "repo",
2690
+ "in": "path",
2691
+ "required": true
2692
+ },
2693
+ {
2694
+ "type": "string",
2695
+ "description": "文件访问链接的files后半部分,比如链接是 https://cnb.cool/cnb/feedback/-/files/abc/1234abcd/test.zip,filePath 就是 abc/1234abcd/test.zip。",
2696
+ "name": "filePath",
2697
+ "in": "path",
2698
+ "required": true
2699
+ }
2700
+ ],
2701
+ "responses": {
2702
+ "200": {
2703
+ "description": "OK"
2704
+ }
2705
+ },
2706
+ "path": "/{repo}/-/files/{filePath}",
2707
+ "method": "delete"
2708
+ },
2636
2709
  "repo.forks.get": {
2637
2710
  "tags": [
2638
2711
  "Repositories"
@@ -2690,14 +2763,14 @@
2690
2763
  "parameters": [
2691
2764
  {
2692
2765
  "type": "string",
2693
- "description": "repo",
2766
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
2694
2767
  "name": "repo",
2695
2768
  "in": "path",
2696
2769
  "required": true
2697
2770
  },
2698
2771
  {
2699
2772
  "type": "string",
2700
- "description": "commit sha",
2773
+ "description": "提交的哈希值。",
2701
2774
  "name": "sha1",
2702
2775
  "in": "path",
2703
2776
  "required": true
@@ -2730,14 +2803,14 @@
2730
2803
  "parameters": [
2731
2804
  {
2732
2805
  "type": "string",
2733
- "description": "repo",
2806
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
2734
2807
  "name": "repo",
2735
2808
  "in": "path",
2736
2809
  "required": true
2737
2810
  },
2738
2811
  {
2739
2812
  "type": "string",
2740
- "description": "base...head",
2813
+ "description": "用于Git比较操作的基准和头部分支或提交的SHA值。格式:`base...head`",
2741
2814
  "name": "base_head",
2742
2815
  "in": "path",
2743
2816
  "required": true
@@ -2770,14 +2843,14 @@
2770
2843
  "parameters": [
2771
2844
  {
2772
2845
  "type": "string",
2773
- "description": "repo",
2846
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
2774
2847
  "name": "repo",
2775
2848
  "in": "path",
2776
2849
  "required": true
2777
2850
  },
2778
2851
  {
2779
2852
  "type": "string",
2780
- "description": "ref with path",
2853
+ "description": "包含路径的Git引用。格式:`分支名`,`标签名`,`提交哈希`,`分支名/文件路径`",
2781
2854
  "name": "ref_with_path",
2782
2855
  "in": "path",
2783
2856
  "required": true
@@ -2810,7 +2883,7 @@
2810
2883
  "parameters": [
2811
2884
  {
2812
2885
  "type": "string",
2813
- "description": "repo",
2886
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
2814
2887
  "name": "repo",
2815
2888
  "in": "path",
2816
2889
  "required": true
@@ -2849,6 +2922,92 @@
2849
2922
  "path": "/{repo}/-/git/blobs",
2850
2923
  "method": "post"
2851
2924
  },
2925
+ "repo.git.branchLocks.post": {
2926
+ "tags": [
2927
+ "Git"
2928
+ ],
2929
+ "summary": "锁定分支",
2930
+ "operationId": "CreateBranchLock",
2931
+ "parameters": [
2932
+ {
2933
+ "type": "string",
2934
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
2935
+ "name": "repo",
2936
+ "in": "path",
2937
+ "required": true
2938
+ },
2939
+ {
2940
+ "type": "string",
2941
+ "description": "分支名称",
2942
+ "name": "branch",
2943
+ "in": "path",
2944
+ "required": true
2945
+ }
2946
+ ],
2947
+ "responses": {
2948
+ "201": {
2949
+ "description": "Created"
2950
+ },
2951
+ "404": {
2952
+ "description": "Not Found",
2953
+ "schema": {
2954
+ "$ref": "#/definitions/die.WebError"
2955
+ }
2956
+ },
2957
+ "500": {
2958
+ "description": "Internal Server Error",
2959
+ "schema": {
2960
+ "$ref": "#/definitions/die.WebError"
2961
+ }
2962
+ }
2963
+ },
2964
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
2965
+ "path": "/{repo}/-/git/branch-locks/{branch}",
2966
+ "method": "post"
2967
+ },
2968
+ "repo.git.branchLocks.delete": {
2969
+ "tags": [
2970
+ "Git"
2971
+ ],
2972
+ "summary": "解除锁定分支",
2973
+ "operationId": "DeleteBranchLock",
2974
+ "parameters": [
2975
+ {
2976
+ "type": "string",
2977
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
2978
+ "name": "repo",
2979
+ "in": "path",
2980
+ "required": true
2981
+ },
2982
+ {
2983
+ "type": "string",
2984
+ "description": "分支名称",
2985
+ "name": "branch",
2986
+ "in": "path",
2987
+ "required": true
2988
+ }
2989
+ ],
2990
+ "responses": {
2991
+ "204": {
2992
+ "description": "No Content"
2993
+ },
2994
+ "404": {
2995
+ "description": "Not Found",
2996
+ "schema": {
2997
+ "$ref": "#/definitions/die.WebError"
2998
+ }
2999
+ },
3000
+ "500": {
3001
+ "description": "Internal Server Error",
3002
+ "schema": {
3003
+ "$ref": "#/definitions/die.WebError"
3004
+ }
3005
+ }
3006
+ },
3007
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
3008
+ "path": "/{repo}/-/git/branch-locks/{branch}",
3009
+ "method": "delete"
3010
+ },
2852
3011
  "repo.git.branches.list": {
2853
3012
  "tags": [
2854
3013
  "Git"
@@ -2858,7 +3017,7 @@
2858
3017
  "parameters": [
2859
3018
  {
2860
3019
  "type": "string",
2861
- "description": "repo",
3020
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
2862
3021
  "name": "repo",
2863
3022
  "in": "path",
2864
3023
  "required": true
@@ -2866,14 +3025,14 @@
2866
3025
  {
2867
3026
  "type": "integer",
2868
3027
  "default": 1,
2869
- "description": "pagination page number",
3028
+ "description": "分页页码。",
2870
3029
  "name": "page",
2871
3030
  "in": "query"
2872
3031
  },
2873
3032
  {
2874
3033
  "type": "integer",
2875
3034
  "default": 30,
2876
- "description": "pagination page size",
3035
+ "description": "分页页大小。",
2877
3036
  "name": "page_size",
2878
3037
  "in": "query"
2879
3038
  }
@@ -2914,13 +3073,13 @@
2914
3073
  "parameters": [
2915
3074
  {
2916
3075
  "type": "string",
2917
- "description": "repo",
3076
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
2918
3077
  "name": "repo",
2919
3078
  "in": "path",
2920
3079
  "required": true
2921
3080
  },
2922
3081
  {
2923
- "description": "Create BranchDetail Form",
3082
+ "description": "Create Branch Form",
2924
3083
  "name": "create_branch_form",
2925
3084
  "in": "body",
2926
3085
  "required": true,
@@ -2959,14 +3118,14 @@
2959
3118
  "parameters": [
2960
3119
  {
2961
3120
  "type": "string",
2962
- "description": "repo",
3121
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
2963
3122
  "name": "repo",
2964
3123
  "in": "path",
2965
3124
  "required": true
2966
3125
  },
2967
3126
  {
2968
3127
  "type": "string",
2969
- "description": "branch name",
3128
+ "description": "分支名称。",
2970
3129
  "name": "branch",
2971
3130
  "in": "path",
2972
3131
  "required": true
@@ -3005,14 +3164,14 @@
3005
3164
  "parameters": [
3006
3165
  {
3007
3166
  "type": "string",
3008
- "description": "repo",
3167
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3009
3168
  "name": "repo",
3010
3169
  "in": "path",
3011
3170
  "required": true
3012
3171
  },
3013
3172
  {
3014
3173
  "type": "string",
3015
- "description": "branch name",
3174
+ "description": "分支名称。",
3016
3175
  "name": "branch",
3017
3176
  "in": "path",
3018
3177
  "required": true
@@ -3048,7 +3207,7 @@
3048
3207
  "parameters": [
3049
3208
  {
3050
3209
  "type": "string",
3051
- "description": "repo",
3210
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3052
3211
  "name": "repo",
3053
3212
  "in": "path",
3054
3213
  "required": true
@@ -3099,14 +3258,14 @@
3099
3258
  "parameters": [
3100
3259
  {
3101
3260
  "type": "string",
3102
- "description": "repo",
3261
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3103
3262
  "name": "repo",
3104
3263
  "in": "path",
3105
3264
  "required": true
3106
3265
  },
3107
3266
  {
3108
3267
  "type": "string",
3109
- "description": "commit hash",
3268
+ "description": "提交的哈希值。",
3110
3269
  "name": "sha",
3111
3270
  "in": "path",
3112
3271
  "required": true
@@ -3148,14 +3307,14 @@
3148
3307
  "parameters": [
3149
3308
  {
3150
3309
  "type": "string",
3151
- "description": "repo",
3310
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3152
3311
  "name": "repo",
3153
3312
  "in": "path",
3154
3313
  "required": true
3155
3314
  },
3156
3315
  {
3157
3316
  "type": "string",
3158
- "description": "commit hash",
3317
+ "description": "提交的哈希值。",
3159
3318
  "name": "sha",
3160
3319
  "in": "path",
3161
3320
  "required": true
@@ -3200,21 +3359,21 @@
3200
3359
  "parameters": [
3201
3360
  {
3202
3361
  "type": "string",
3203
- "description": "repo",
3362
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3204
3363
  "name": "repo",
3205
3364
  "in": "path",
3206
3365
  "required": true
3207
3366
  },
3208
3367
  {
3209
3368
  "type": "string",
3210
- "description": "commit hash",
3369
+ "description": "提交的哈希值。",
3211
3370
  "name": "sha",
3212
3371
  "in": "path",
3213
3372
  "required": true
3214
3373
  },
3215
3374
  {
3216
3375
  "type": "string",
3217
- "description": "commit annotation key",
3376
+ "description": "提交的元数据键名。",
3218
3377
  "name": "key",
3219
3378
  "in": "path",
3220
3379
  "required": true
@@ -3250,14 +3409,14 @@
3250
3409
  "parameters": [
3251
3410
  {
3252
3411
  "type": "string",
3253
- "description": "repo",
3412
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3254
3413
  "name": "repo",
3255
3414
  "in": "path",
3256
3415
  "required": true
3257
3416
  },
3258
3417
  {
3259
3418
  "type": "string",
3260
- "description": "sha",
3419
+ "description": "提交的哈希值。",
3261
3420
  "name": "sha1",
3262
3421
  "in": "path",
3263
3422
  "required": true
@@ -3299,31 +3458,38 @@
3299
3458
  "parameters": [
3300
3459
  {
3301
3460
  "type": "string",
3302
- "description": "repo",
3461
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3303
3462
  "name": "repo",
3304
3463
  "in": "path",
3305
3464
  "required": true
3306
3465
  },
3307
3466
  {
3308
3467
  "type": "string",
3309
- "description": "sha",
3468
+ "description": "提交的哈希值。",
3310
3469
  "name": "sha1",
3311
3470
  "in": "path",
3312
3471
  "required": true
3313
3472
  },
3314
3473
  {
3315
3474
  "type": "string",
3316
- "description": "upload token",
3475
+ "description": "PostCommitAssetUploadURL接口返回值verify_url字段提取的upload_token。",
3317
3476
  "name": "upload_token",
3318
3477
  "in": "path",
3319
3478
  "required": true
3320
3479
  },
3321
3480
  {
3322
3481
  "type": "string",
3323
- "description": "commit asset path",
3482
+ "description": "PostCommitAssetUploadURL接口返回值verify_url字段提取的asset_path。",
3324
3483
  "name": "asset_path",
3325
3484
  "in": "path",
3326
3485
  "required": true
3486
+ },
3487
+ {
3488
+ "type": "integer",
3489
+ "format": "int64",
3490
+ "description": "附件保持的天数。0 表示永久,最大不能超过 180 天",
3491
+ "name": "ttl",
3492
+ "in": "query"
3327
3493
  }
3328
3494
  ],
3329
3495
  "responses": {
@@ -3356,14 +3522,14 @@
3356
3522
  "parameters": [
3357
3523
  {
3358
3524
  "type": "string",
3359
- "description": "repo",
3525
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3360
3526
  "name": "repo",
3361
3527
  "in": "path",
3362
3528
  "required": true
3363
3529
  },
3364
3530
  {
3365
3531
  "type": "string",
3366
- "description": "sha",
3532
+ "description": "提交的哈希值。",
3367
3533
  "name": "sha1",
3368
3534
  "in": "path",
3369
3535
  "required": true
@@ -3411,21 +3577,21 @@
3411
3577
  "parameters": [
3412
3578
  {
3413
3579
  "type": "string",
3414
- "description": "repo",
3580
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3415
3581
  "name": "repo",
3416
3582
  "in": "path",
3417
3583
  "required": true
3418
3584
  },
3419
3585
  {
3420
3586
  "type": "string",
3421
- "description": "sha",
3587
+ "description": "提交的哈希值。",
3422
3588
  "name": "sha1",
3423
3589
  "in": "path",
3424
3590
  "required": true
3425
3591
  },
3426
3592
  {
3427
3593
  "type": "string",
3428
- "description": "asset id",
3594
+ "description": "附件唯一标识符。",
3429
3595
  "name": "asset_id",
3430
3596
  "in": "path",
3431
3597
  "required": true
@@ -3461,14 +3627,14 @@
3461
3627
  "parameters": [
3462
3628
  {
3463
3629
  "type": "string",
3464
- "description": "repo",
3630
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3465
3631
  "name": "repo",
3466
3632
  "in": "path",
3467
3633
  "required": true
3468
3634
  },
3469
3635
  {
3470
3636
  "type": "string",
3471
- "description": "commitish",
3637
+ "description": "Git引用标识符。格式:`分支名称`,`提交哈希值`,`标签名称`",
3472
3638
  "name": "commitish",
3473
3639
  "in": "path",
3474
3640
  "required": true
@@ -3510,52 +3676,52 @@
3510
3676
  "parameters": [
3511
3677
  {
3512
3678
  "type": "string",
3513
- "description": "repo",
3679
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3514
3680
  "name": "repo",
3515
3681
  "in": "path",
3516
3682
  "required": true
3517
3683
  },
3518
3684
  {
3519
3685
  "type": "string",
3520
- "description": "sha or branch",
3686
+ "description": "提交标识符。格式:`分支名称`,`提交哈希值`",
3521
3687
  "name": "sha",
3522
3688
  "in": "query"
3523
3689
  },
3524
3690
  {
3525
3691
  "type": "string",
3526
- "description": "commit author pattern",
3692
+ "description": "作者匹配模式,支持Git原生正则表达式匹配作者信息。",
3527
3693
  "name": "author",
3528
3694
  "in": "query"
3529
3695
  },
3530
3696
  {
3531
3697
  "type": "string",
3532
- "description": "commit committer pattern",
3698
+ "description": "提交者匹配模式,支持Git原生正则表达式匹配提交者信息。",
3533
3699
  "name": "committer",
3534
3700
  "in": "query"
3535
3701
  },
3536
3702
  {
3537
3703
  "type": "string",
3538
- "description": "commit since",
3704
+ "description": "提交时间起始范围。示例:`2025-01-01T00:00:00Z`",
3539
3705
  "name": "since",
3540
3706
  "in": "query"
3541
3707
  },
3542
3708
  {
3543
3709
  "type": "string",
3544
- "description": "commit until",
3710
+ "description": "提交时间结束范围。示例:`2025-12-31T23:59:59Z`",
3545
3711
  "name": "until",
3546
3712
  "in": "query"
3547
3713
  },
3548
3714
  {
3549
3715
  "type": "integer",
3550
3716
  "default": 1,
3551
- "description": "pagination page number",
3717
+ "description": "分页页码。",
3552
3718
  "name": "page",
3553
3719
  "in": "query"
3554
3720
  },
3555
3721
  {
3556
3722
  "type": "integer",
3557
3723
  "default": 30,
3558
- "description": "pagination page size",
3724
+ "description": "分页页大小。",
3559
3725
  "name": "page_size",
3560
3726
  "in": "query"
3561
3727
  }
@@ -3596,14 +3762,14 @@
3596
3762
  "parameters": [
3597
3763
  {
3598
3764
  "type": "string",
3599
- "description": "repo",
3765
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3600
3766
  "name": "repo",
3601
3767
  "in": "path",
3602
3768
  "required": true
3603
3769
  },
3604
3770
  {
3605
3771
  "type": "string",
3606
- "description": "ref",
3772
+ "description": "提交的哈希值或分支名称。",
3607
3773
  "name": "ref",
3608
3774
  "in": "path",
3609
3775
  "required": true
@@ -3642,14 +3808,14 @@
3642
3808
  "parameters": [
3643
3809
  {
3644
3810
  "type": "string",
3645
- "description": "repo",
3811
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3646
3812
  "name": "repo",
3647
3813
  "in": "path",
3648
3814
  "required": true
3649
3815
  },
3650
3816
  {
3651
3817
  "type": "string",
3652
- "description": "base...head",
3818
+ "description": "用于Git比较操作的基准和头部分支或提交的SHA值。格式:`base...head`",
3653
3819
  "name": "base_head",
3654
3820
  "in": "path",
3655
3821
  "required": true
@@ -3688,14 +3854,14 @@
3688
3854
  "parameters": [
3689
3855
  {
3690
3856
  "type": "string",
3691
- "description": "repo",
3857
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3692
3858
  "name": "repo",
3693
3859
  "in": "path",
3694
3860
  "required": true
3695
3861
  },
3696
3862
  {
3697
3863
  "type": "string",
3698
- "description": "ref",
3864
+ "description": "提交的哈希值或分支名称。",
3699
3865
  "name": "ref",
3700
3866
  "in": "query"
3701
3867
  }
@@ -3733,21 +3899,21 @@
3733
3899
  "parameters": [
3734
3900
  {
3735
3901
  "type": "string",
3736
- "description": "repo",
3902
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3737
3903
  "name": "repo",
3738
3904
  "in": "path",
3739
3905
  "required": true
3740
3906
  },
3741
3907
  {
3742
3908
  "type": "string",
3743
- "description": "path",
3909
+ "description": "文件路径。",
3744
3910
  "name": "file_path",
3745
3911
  "in": "path",
3746
3912
  "required": true
3747
3913
  },
3748
3914
  {
3749
3915
  "type": "string",
3750
- "description": "ref",
3916
+ "description": "提交的哈希值或分支名称。",
3751
3917
  "name": "ref",
3752
3918
  "in": "query"
3753
3919
  }
@@ -3785,7 +3951,7 @@
3785
3951
  "parameters": [
3786
3952
  {
3787
3953
  "type": "string",
3788
- "description": "repo",
3954
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3789
3955
  "name": "repo",
3790
3956
  "in": "path",
3791
3957
  "required": true
@@ -3824,21 +3990,22 @@
3824
3990
  "parameters": [
3825
3991
  {
3826
3992
  "type": "string",
3827
- "description": "repo",
3993
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3828
3994
  "name": "repo",
3829
3995
  "in": "path",
3830
3996
  "required": true
3831
3997
  },
3832
3998
  {
3833
3999
  "type": "string",
3834
- "description": "ref with path",
4000
+ "description": "包含路径的Git引用。格式:`分支名`,`标签名`,`提交哈希`,`分支名/文件路径`",
3835
4001
  "name": "ref_with_path",
3836
4002
  "in": "path",
3837
4003
  "required": true
3838
4004
  },
3839
4005
  {
3840
4006
  "type": "integer",
3841
- "description": "max blob size limit",
4007
+ "default": 0,
4008
+ "description": "获得文件内容大小限制(字节),0表示使用gitConfig.RawFileLimitInByte配置值。",
3842
4009
  "name": "max_in_byte",
3843
4010
  "in": "query"
3844
4011
  }
@@ -3876,14 +4043,14 @@
3876
4043
  "parameters": [
3877
4044
  {
3878
4045
  "type": "string",
3879
- "description": "repo",
4046
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3880
4047
  "name": "repo",
3881
4048
  "in": "path",
3882
4049
  "required": true
3883
4050
  },
3884
4051
  {
3885
4052
  "type": "string",
3886
- "description": "tag with key",
4053
+ "description": "tag元数据名称。格式:`标签名称/元数据key`",
3887
4054
  "name": "tag_with_key",
3888
4055
  "in": "path",
3889
4056
  "required": true
@@ -3919,14 +4086,14 @@
3919
4086
  "parameters": [
3920
4087
  {
3921
4088
  "type": "string",
3922
- "description": "repo",
4089
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3923
4090
  "name": "repo",
3924
4091
  "in": "path",
3925
4092
  "required": true
3926
4093
  },
3927
4094
  {
3928
4095
  "type": "string",
3929
- "description": "tag",
4096
+ "description": "标签名称。示例:`v1.0.0`",
3930
4097
  "name": "tag",
3931
4098
  "in": "path",
3932
4099
  "required": true
@@ -3968,14 +4135,14 @@
3968
4135
  "parameters": [
3969
4136
  {
3970
4137
  "type": "string",
3971
- "description": "repo",
4138
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
3972
4139
  "name": "repo",
3973
4140
  "in": "path",
3974
4141
  "required": true
3975
4142
  },
3976
4143
  {
3977
4144
  "type": "string",
3978
- "description": "tag",
4145
+ "description": "标签名称。示例:`v1.0.0`",
3979
4146
  "name": "tag",
3980
4147
  "in": "path",
3981
4148
  "required": true
@@ -4020,7 +4187,7 @@
4020
4187
  "parameters": [
4021
4188
  {
4022
4189
  "type": "string",
4023
- "description": "repo",
4190
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4024
4191
  "name": "repo",
4025
4192
  "in": "path",
4026
4193
  "required": true
@@ -4028,14 +4195,14 @@
4028
4195
  {
4029
4196
  "type": "integer",
4030
4197
  "default": 1,
4031
- "description": "pagination page number",
4198
+ "description": "分页页码。",
4032
4199
  "name": "page",
4033
4200
  "in": "query"
4034
4201
  },
4035
4202
  {
4036
4203
  "type": "integer",
4037
4204
  "default": 30,
4038
- "description": "pagination page size",
4205
+ "description": "分页页大小。",
4039
4206
  "name": "page_size",
4040
4207
  "in": "query"
4041
4208
  }
@@ -4076,7 +4243,7 @@
4076
4243
  "parameters": [
4077
4244
  {
4078
4245
  "type": "string",
4079
- "description": "repo",
4246
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4080
4247
  "name": "repo",
4081
4248
  "in": "path",
4082
4249
  "required": true
@@ -4124,14 +4291,14 @@
4124
4291
  "parameters": [
4125
4292
  {
4126
4293
  "type": "string",
4127
- "description": "repo",
4294
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4128
4295
  "name": "repo",
4129
4296
  "in": "path",
4130
4297
  "required": true
4131
4298
  },
4132
4299
  {
4133
4300
  "type": "string",
4134
- "description": "tag name",
4301
+ "description": "标签名称。示例:`v1.0.0`",
4135
4302
  "name": "tag",
4136
4303
  "in": "path",
4137
4304
  "required": true
@@ -4170,14 +4337,14 @@
4170
4337
  "parameters": [
4171
4338
  {
4172
4339
  "type": "string",
4173
- "description": "repo",
4340
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4174
4341
  "name": "repo",
4175
4342
  "in": "path",
4176
4343
  "required": true
4177
4344
  },
4178
4345
  {
4179
4346
  "type": "string",
4180
- "description": "tag name",
4347
+ "description": "标签名称。示例:`v1.0.0`",
4181
4348
  "name": "tag",
4182
4349
  "in": "path",
4183
4350
  "required": true
@@ -4204,6 +4371,38 @@
4204
4371
  "path": "/{repo}/-/git/tags/{tag}",
4205
4372
  "method": "delete"
4206
4373
  },
4374
+ "repo.imgs.delete": {
4375
+ "description": "删除 UploadImgs 上传的图片\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
4376
+ "tags": [
4377
+ "Pulls",
4378
+ "Issues"
4379
+ ],
4380
+ "summary": "删除 UploadImgs 上传的图片",
4381
+ "operationId": "DeleteRepoImgs",
4382
+ "parameters": [
4383
+ {
4384
+ "type": "string",
4385
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4386
+ "name": "repo",
4387
+ "in": "path",
4388
+ "required": true
4389
+ },
4390
+ {
4391
+ "type": "string",
4392
+ "description": "图片访问链接的imgs后半部分,比如链接是 https://cnb.cool/cnb/feedback/-/imgs/abc/1234abcd.png,imgPath 就是 abc/1234abcd.png。",
4393
+ "name": "imgPath",
4394
+ "in": "path",
4395
+ "required": true
4396
+ }
4397
+ ],
4398
+ "responses": {
4399
+ "200": {
4400
+ "description": "OK"
4401
+ }
4402
+ },
4403
+ "path": "/{repo}/-/imgs/{imgPath}",
4404
+ "method": "delete"
4405
+ },
4207
4406
  "repo.inheritMembers.list": {
4208
4407
  "tags": [
4209
4408
  "Members"
@@ -4277,7 +4476,7 @@
4277
4476
  "parameters": [
4278
4477
  {
4279
4478
  "type": "string",
4280
- "description": "repo",
4479
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4281
4480
  "name": "repo",
4282
4481
  "in": "path",
4283
4482
  "required": true
@@ -4285,86 +4484,87 @@
4285
4484
  {
4286
4485
  "type": "integer",
4287
4486
  "default": 1,
4288
- "description": "pagination page number. If the value is less than 1, it will automatically be adjusted to 1",
4487
+ "description": "分页页码,输入值小于1,则调整为1",
4289
4488
  "name": "page",
4290
4489
  "in": "query"
4291
4490
  },
4292
4491
  {
4293
4492
  "type": "integer",
4294
4493
  "default": 30,
4295
- "description": "pagination page size. If the value is more than 100, it will automatically be adjusted to 100",
4494
+ "description": "分页页大小,输入值小于0,则调整为10;输入值大于100,则调整为100",
4296
4495
  "name": "page_size",
4297
4496
  "in": "query"
4298
4497
  },
4299
4498
  {
4300
4499
  "type": "string",
4301
- "description": "issue state open or closed",
4500
+ "description": "Issue状态过滤。可选值:`open`、`closed`",
4302
4501
  "name": "state",
4303
4502
  "in": "query"
4304
4503
  },
4305
4504
  {
4306
4505
  "type": "string",
4307
- "description": "issue search key",
4506
+ "description": "Issue搜索关键词,支持在标题和内容中模糊搜索。",
4308
4507
  "name": "keyword",
4309
4508
  "in": "query"
4310
4509
  },
4311
4510
  {
4312
4511
  "type": "string",
4313
- "description": "issue priority example: -1P, -2P, P0, P1, P2, P3",
4512
+ "description": "Issue优先级过滤。示例:`-2P,-1P,P0,P1,P2,P3`",
4314
4513
  "name": "priority",
4315
4514
  "in": "query"
4316
4515
  },
4317
4516
  {
4318
4517
  "type": "string",
4319
- "description": "issue labels example: git,bug,feature",
4518
+ "description": "Issue标签过滤。示例:`git,bug,feature`",
4320
4519
  "name": "labels",
4321
4520
  "in": "query"
4322
4521
  },
4323
4522
  {
4324
4523
  "type": "string",
4325
- "description": "issue labels operator example: contains_any,contains_all default: contains_any",
4524
+ "default": "contains_any",
4525
+ "description": "标签过滤操作符。可选值:`contains_any`,`contains_all`",
4326
4526
  "name": "labels_operator",
4327
4527
  "in": "query"
4328
4528
  },
4329
4529
  {
4330
4530
  "type": "string",
4331
- "description": "issue authors name, example: 张三,李四",
4531
+ "description": "Issue创建者过滤,多个作者用英文逗号分隔。示例:`张三,李四`",
4332
4532
  "name": "authors",
4333
4533
  "in": "query"
4334
4534
  },
4335
4535
  {
4336
4536
  "type": "string",
4337
- "description": "issue assignees name, example: 张三,李四,-; - means assign to nobody",
4537
+ "description": "Issue处理人过滤,多个处理人用英文逗号分隔,-表示未分配处理人。示例:`张三,李四`,`-`",
4338
4538
  "name": "assignees",
4339
4539
  "in": "query"
4340
4540
  },
4341
4541
  {
4342
4542
  "type": "string",
4343
- "description": "issue filter update time begin example: 2022-01-31",
4543
+ "description": "Issue更新时间范围开始。示例:`2022-01-31`",
4344
4544
  "name": "updated_time_begin",
4345
4545
  "in": "query"
4346
4546
  },
4347
4547
  {
4348
4548
  "type": "string",
4349
- "description": "issue filter update time end, example: 2022-01-31",
4549
+ "description": "Issue更新时间范围结束。示例:`2022-02-16`",
4350
4550
  "name": "updated_time_end",
4351
4551
  "in": "query"
4352
4552
  },
4353
4553
  {
4354
4554
  "type": "string",
4355
- "description": "issue filter close time begin example: 2022-01-31",
4555
+ "description": "Issue关闭时间范围开始。示例:`2022-01-31`",
4356
4556
  "name": "close_time_begin",
4357
4557
  "in": "query"
4358
4558
  },
4359
4559
  {
4360
4560
  "type": "string",
4361
- "description": "issue filter close time end, example: 2022-01-31",
4561
+ "description": "Issue关闭时间范围结束。示例:`2022-02-16`",
4362
4562
  "name": "close_time_end",
4363
4563
  "in": "query"
4364
4564
  },
4365
4565
  {
4366
4566
  "type": "string",
4367
- "description": "issue order, example: created_at, -updated_at, reference_count。‘-’ prefix means descending order",
4567
+ "description": "Issue排序字段,-前缀表示倒序。可选值:`created_at`,`-created_at`,`-updated_at`,`-last_acted_at`",
4368
4568
  "name": "order_by",
4369
4569
  "in": "query"
4370
4570
  }
@@ -4392,7 +4592,7 @@
4392
4592
  }
4393
4593
  }
4394
4594
  },
4395
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
4595
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
4396
4596
  "path": "/{repo}/-/issues",
4397
4597
  "method": "get"
4398
4598
  },
@@ -4405,7 +4605,7 @@
4405
4605
  "parameters": [
4406
4606
  {
4407
4607
  "type": "string",
4408
- "description": "repo",
4608
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4409
4609
  "name": "repo",
4410
4610
  "in": "path",
4411
4611
  "required": true
@@ -4440,7 +4640,7 @@
4440
4640
  }
4441
4641
  }
4442
4642
  },
4443
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4643
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
4444
4644
  "path": "/{repo}/-/issues",
4445
4645
  "method": "post"
4446
4646
  },
@@ -4453,14 +4653,14 @@
4453
4653
  "parameters": [
4454
4654
  {
4455
4655
  "type": "string",
4456
- "description": "repo",
4656
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4457
4657
  "name": "repo",
4458
4658
  "in": "path",
4459
4659
  "required": true
4460
4660
  },
4461
4661
  {
4462
4662
  "type": "integer",
4463
- "description": "issue number",
4663
+ "description": "Issue唯一标识编号。",
4464
4664
  "name": "number",
4465
4665
  "in": "path",
4466
4666
  "required": true
@@ -4486,7 +4686,7 @@
4486
4686
  }
4487
4687
  }
4488
4688
  },
4489
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
4689
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
4490
4690
  "path": "/{repo}/-/issues/{number}",
4491
4691
  "method": "get"
4492
4692
  },
@@ -4499,14 +4699,14 @@
4499
4699
  "parameters": [
4500
4700
  {
4501
4701
  "type": "string",
4502
- "description": "repo",
4702
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4503
4703
  "name": "repo",
4504
4704
  "in": "path",
4505
4705
  "required": true
4506
4706
  },
4507
4707
  {
4508
4708
  "type": "integer",
4509
- "description": "issue number",
4709
+ "description": "Issue唯一标识编号。",
4510
4710
  "name": "number",
4511
4711
  "in": "path",
4512
4712
  "required": true
@@ -4541,7 +4741,7 @@
4541
4741
  }
4542
4742
  }
4543
4743
  },
4544
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4744
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
4545
4745
  "path": "/{repo}/-/issues/{number}",
4546
4746
  "method": "patch"
4547
4747
  },
@@ -4554,14 +4754,14 @@
4554
4754
  "parameters": [
4555
4755
  {
4556
4756
  "type": "string",
4557
- "description": "repo",
4757
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4558
4758
  "name": "repo",
4559
4759
  "in": "path",
4560
4760
  "required": true
4561
4761
  },
4562
4762
  {
4563
4763
  "type": "string",
4564
- "description": "issue number",
4764
+ "description": "Issue唯一标识编号。",
4565
4765
  "name": "number",
4566
4766
  "in": "path",
4567
4767
  "required": true
@@ -4590,7 +4790,7 @@
4590
4790
  }
4591
4791
  }
4592
4792
  },
4593
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
4793
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
4594
4794
  "path": "/{repo}/-/issues/{number}/assignees",
4595
4795
  "method": "get"
4596
4796
  },
@@ -4603,14 +4803,14 @@
4603
4803
  "parameters": [
4604
4804
  {
4605
4805
  "type": "string",
4606
- "description": "repo",
4806
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4607
4807
  "name": "repo",
4608
4808
  "in": "path",
4609
4809
  "required": true
4610
4810
  },
4611
4811
  {
4612
4812
  "type": "string",
4613
- "description": "issue number",
4813
+ "description": "Issue唯一标识编号。",
4614
4814
  "name": "number",
4615
4815
  "in": "path",
4616
4816
  "required": true
@@ -4645,7 +4845,7 @@
4645
4845
  }
4646
4846
  }
4647
4847
  },
4648
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4848
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
4649
4849
  "path": "/{repo}/-/issues/{number}/assignees",
4650
4850
  "method": "post"
4651
4851
  },
@@ -4658,14 +4858,14 @@
4658
4858
  "parameters": [
4659
4859
  {
4660
4860
  "type": "string",
4661
- "description": "repo",
4861
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4662
4862
  "name": "repo",
4663
4863
  "in": "path",
4664
4864
  "required": true
4665
4865
  },
4666
4866
  {
4667
4867
  "type": "string",
4668
- "description": "issue number",
4868
+ "description": "Issue唯一标识编号。",
4669
4869
  "name": "number",
4670
4870
  "in": "path",
4671
4871
  "required": true
@@ -4700,7 +4900,7 @@
4700
4900
  }
4701
4901
  }
4702
4902
  },
4703
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4903
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
4704
4904
  "path": "/{repo}/-/issues/{number}/assignees",
4705
4905
  "method": "delete"
4706
4906
  },
@@ -4713,14 +4913,14 @@
4713
4913
  "parameters": [
4714
4914
  {
4715
4915
  "type": "string",
4716
- "description": "repo",
4916
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4717
4917
  "name": "repo",
4718
4918
  "in": "path",
4719
4919
  "required": true
4720
4920
  },
4721
4921
  {
4722
4922
  "type": "string",
4723
- "description": "issue number",
4923
+ "description": "Issue唯一标识编号。",
4724
4924
  "name": "number",
4725
4925
  "in": "path",
4726
4926
  "required": true
@@ -4755,7 +4955,7 @@
4755
4955
  }
4756
4956
  }
4757
4957
  },
4758
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
4958
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
4759
4959
  "path": "/{repo}/-/issues/{number}/assignees",
4760
4960
  "method": "patch"
4761
4961
  },
@@ -4768,21 +4968,21 @@
4768
4968
  "parameters": [
4769
4969
  {
4770
4970
  "type": "string",
4771
- "description": "repo",
4971
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4772
4972
  "name": "repo",
4773
4973
  "in": "path",
4774
4974
  "required": true
4775
4975
  },
4776
4976
  {
4777
4977
  "type": "string",
4778
- "description": "issue number",
4978
+ "description": "Issue唯一标识编号。",
4779
4979
  "name": "number",
4780
4980
  "in": "path",
4781
4981
  "required": true
4782
4982
  },
4783
4983
  {
4784
4984
  "type": "string",
4785
- "description": "assignee",
4985
+ "description": "Issue处理人用户名。",
4786
4986
  "name": "assignee",
4787
4987
  "in": "path",
4788
4988
  "required": true
@@ -4805,7 +5005,7 @@
4805
5005
  }
4806
5006
  }
4807
5007
  },
4808
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
5008
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
4809
5009
  "path": "/{repo}/-/issues/{number}/assignees/{assignee}",
4810
5010
  "method": "get"
4811
5011
  },
@@ -4818,29 +5018,36 @@
4818
5018
  "parameters": [
4819
5019
  {
4820
5020
  "type": "string",
4821
- "description": "repo",
5021
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4822
5022
  "name": "repo",
4823
5023
  "in": "path",
4824
5024
  "required": true
4825
5025
  },
4826
5026
  {
4827
5027
  "type": "integer",
4828
- "description": "issue number",
5028
+ "description": "Issue唯一标识编号。",
4829
5029
  "name": "number",
4830
5030
  "in": "path",
4831
5031
  "required": true
4832
5032
  },
5033
+ {
5034
+ "type": "string",
5035
+ "default": "created",
5036
+ "description": "排序方式。支持 created, updated 升序; -created, -updated 降序",
5037
+ "name": "sort",
5038
+ "in": "query"
5039
+ },
4833
5040
  {
4834
5041
  "type": "integer",
4835
5042
  "default": 1,
4836
- "description": "pagination page number",
5043
+ "description": "分页页码。",
4837
5044
  "name": "page",
4838
5045
  "in": "query"
4839
5046
  },
4840
5047
  {
4841
5048
  "type": "integer",
4842
- "default": 30,
4843
- "description": "pagination page size",
5049
+ "default": 10,
5050
+ "description": "分页页大小。",
4844
5051
  "name": "page_size",
4845
5052
  "in": "query"
4846
5053
  }
@@ -4881,14 +5088,14 @@
4881
5088
  "parameters": [
4882
5089
  {
4883
5090
  "type": "string",
4884
- "description": "repo",
5091
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4885
5092
  "name": "repo",
4886
5093
  "in": "path",
4887
5094
  "required": true
4888
5095
  },
4889
5096
  {
4890
5097
  "type": "integer",
4891
- "description": "number",
5098
+ "description": "Issue唯一标识编号。",
4892
5099
  "name": "number",
4893
5100
  "in": "path",
4894
5101
  "required": true
@@ -4936,21 +5143,21 @@
4936
5143
  "parameters": [
4937
5144
  {
4938
5145
  "type": "string",
4939
- "description": "repo",
5146
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4940
5147
  "name": "repo",
4941
5148
  "in": "path",
4942
5149
  "required": true
4943
5150
  },
4944
5151
  {
4945
- "type": "string",
4946
- "description": "number",
5152
+ "type": "integer",
5153
+ "description": "Issue唯一标识编号。",
4947
5154
  "name": "number",
4948
5155
  "in": "path",
4949
5156
  "required": true
4950
5157
  },
4951
5158
  {
4952
- "type": "string",
4953
- "description": "comment_id",
5159
+ "type": "integer",
5160
+ "description": "Issue评论唯一标识编号。",
4954
5161
  "name": "comment_id",
4955
5162
  "in": "path",
4956
5163
  "required": true
@@ -4989,21 +5196,21 @@
4989
5196
  "parameters": [
4990
5197
  {
4991
5198
  "type": "string",
4992
- "description": "repo",
5199
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
4993
5200
  "name": "repo",
4994
5201
  "in": "path",
4995
5202
  "required": true
4996
5203
  },
4997
5204
  {
4998
5205
  "type": "integer",
4999
- "description": "number",
5206
+ "description": "Issue唯一标识编号。",
5000
5207
  "name": "number",
5001
5208
  "in": "path",
5002
5209
  "required": true
5003
5210
  },
5004
5211
  {
5005
5212
  "type": "integer",
5006
- "description": "comment_id",
5213
+ "description": "Issue评论唯一标识编号。",
5007
5214
  "name": "comment_id",
5008
5215
  "in": "path",
5009
5216
  "required": true
@@ -5051,14 +5258,14 @@
5051
5258
  "parameters": [
5052
5259
  {
5053
5260
  "type": "string",
5054
- "description": "repo",
5261
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
5055
5262
  "name": "repo",
5056
5263
  "in": "path",
5057
5264
  "required": true
5058
5265
  },
5059
5266
  {
5060
5267
  "type": "integer",
5061
- "description": "number",
5268
+ "description": "Issue唯一标识编号。",
5062
5269
  "name": "number",
5063
5270
  "in": "path",
5064
5271
  "required": true
@@ -5066,14 +5273,14 @@
5066
5273
  {
5067
5274
  "type": "integer",
5068
5275
  "default": 1,
5069
- "description": "pagination page number",
5276
+ "description": "分页页码。",
5070
5277
  "name": "page",
5071
5278
  "in": "query"
5072
5279
  },
5073
5280
  {
5074
5281
  "type": "integer",
5075
5282
  "default": 30,
5076
- "description": "pagination page size",
5283
+ "description": "分页页大小。",
5077
5284
  "name": "page_size",
5078
5285
  "in": "query"
5079
5286
  }
@@ -5101,7 +5308,7 @@
5101
5308
  }
5102
5309
  }
5103
5310
  },
5104
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
5311
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:r",
5105
5312
  "path": "/{repo}/-/issues/{number}/labels",
5106
5313
  "method": "get"
5107
5314
  },
@@ -5114,14 +5321,14 @@
5114
5321
  "parameters": [
5115
5322
  {
5116
5323
  "type": "string",
5117
- "description": "repo",
5324
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
5118
5325
  "name": "repo",
5119
5326
  "in": "path",
5120
5327
  "required": true
5121
5328
  },
5122
5329
  {
5123
5330
  "type": "integer",
5124
- "description": "number",
5331
+ "description": "Issue唯一标识编号。",
5125
5332
  "name": "number",
5126
5333
  "in": "path",
5127
5334
  "required": true
@@ -5156,7 +5363,7 @@
5156
5363
  }
5157
5364
  }
5158
5365
  },
5159
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
5366
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
5160
5367
  "path": "/{repo}/-/issues/{number}/labels",
5161
5368
  "method": "put"
5162
5369
  },
@@ -5169,14 +5376,14 @@
5169
5376
  "parameters": [
5170
5377
  {
5171
5378
  "type": "string",
5172
- "description": "repo",
5379
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
5173
5380
  "name": "repo",
5174
5381
  "in": "path",
5175
5382
  "required": true
5176
5383
  },
5177
5384
  {
5178
5385
  "type": "integer",
5179
- "description": "number",
5386
+ "description": "Issue唯一标识编号。",
5180
5387
  "name": "number",
5181
5388
  "in": "path",
5182
5389
  "required": true
@@ -5211,7 +5418,7 @@
5211
5418
  }
5212
5419
  }
5213
5420
  },
5214
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
5421
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
5215
5422
  "path": "/{repo}/-/issues/{number}/labels",
5216
5423
  "method": "post"
5217
5424
  },
@@ -5224,14 +5431,14 @@
5224
5431
  "parameters": [
5225
5432
  {
5226
5433
  "type": "string",
5227
- "description": "repo",
5434
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
5228
5435
  "name": "repo",
5229
5436
  "in": "path",
5230
5437
  "required": true
5231
5438
  },
5232
5439
  {
5233
5440
  "type": "integer",
5234
- "description": "number",
5441
+ "description": "Issue唯一标识编号。",
5235
5442
  "name": "number",
5236
5443
  "in": "path",
5237
5444
  "required": true
@@ -5254,7 +5461,7 @@
5254
5461
  }
5255
5462
  }
5256
5463
  },
5257
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
5464
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
5258
5465
  "path": "/{repo}/-/issues/{number}/labels",
5259
5466
  "method": "delete"
5260
5467
  },
@@ -5267,21 +5474,21 @@
5267
5474
  "parameters": [
5268
5475
  {
5269
5476
  "type": "string",
5270
- "description": "repo",
5477
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
5271
5478
  "name": "repo",
5272
5479
  "in": "path",
5273
5480
  "required": true
5274
5481
  },
5275
5482
  {
5276
5483
  "type": "integer",
5277
- "description": "number",
5484
+ "description": "Issue唯一标识编号。",
5278
5485
  "name": "number",
5279
5486
  "in": "path",
5280
5487
  "required": true
5281
5488
  },
5282
5489
  {
5283
5490
  "type": "string",
5284
- "description": "label name",
5491
+ "description": "标签名称。",
5285
5492
  "name": "name",
5286
5493
  "in": "path",
5287
5494
  "required": true
@@ -5307,28 +5514,28 @@
5307
5514
  }
5308
5515
  }
5309
5516
  },
5310
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
5517
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
5311
5518
  "path": "/{repo}/-/issues/{number}/labels/{name}",
5312
5519
  "method": "delete"
5313
5520
  },
5314
- "repo.issues.property.post": {
5315
- "description": "为指定Issue批量设置多个自定义属性的值,key 不存在则创建,存在则更新\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
5521
+ "repo.issues.property.patch": {
5522
+ "description": "为指定Issue批量更新多个自定义属性的值,要求属性 key 必须已存在,允许部分失败\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-issue:rw",
5316
5523
  "tags": [
5317
5524
  "Issues"
5318
5525
  ],
5319
- "summary": "批量设置Issue自定义属性值",
5320
- "operationId": "CreateIssueProperties",
5526
+ "summary": "批量更新Issue自定义属性值",
5527
+ "operationId": "UpdateIssueProperties",
5321
5528
  "parameters": [
5322
5529
  {
5323
5530
  "type": "string",
5324
- "description": "repo",
5531
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
5325
5532
  "name": "repo",
5326
5533
  "in": "path",
5327
5534
  "required": true
5328
5535
  },
5329
5536
  {
5330
5537
  "type": "integer",
5331
- "description": "issue number",
5538
+ "description": "Issue唯一标识编号。",
5332
5539
  "name": "number",
5333
5540
  "in": "path",
5334
5541
  "required": true
@@ -5345,7 +5552,16 @@
5345
5552
  ],
5346
5553
  "responses": {
5347
5554
  "200": {
5348
- "description": "OK"
5555
+ "description": "OK",
5556
+ "schema": {
5557
+ "$ref": "#/definitions/api.IssuePropertyUpdateResult"
5558
+ }
5559
+ },
5560
+ "400": {
5561
+ "description": "Bad Request",
5562
+ "schema": {
5563
+ "$ref": "#/definitions/die.WebError"
5564
+ }
5349
5565
  },
5350
5566
  "404": {
5351
5567
  "description": "Not Found",
@@ -5361,7 +5577,7 @@
5361
5577
  }
5362
5578
  },
5363
5579
  "path": "/{repo}/-/issues/{number}/property",
5364
- "method": "post"
5580
+ "method": "patch"
5365
5581
  },
5366
5582
  "repo.knowledge.base.get": {
5367
5583
  "tags": [
@@ -5715,53 +5931,6 @@
5715
5931
  "path": "/{repo}/-/labels/{name}",
5716
5932
  "method": "patch"
5717
5933
  },
5718
- "repo.lfs.get": {
5719
- "tags": [
5720
- "Git"
5721
- ],
5722
- "summary": "获取 git lfs 文件下载链接",
5723
- "operationId": "GetPresignedLFSDownloadLink",
5724
- "parameters": [
5725
- {
5726
- "type": "string",
5727
- "description": "slug",
5728
- "name": "slug",
5729
- "in": "path",
5730
- "required": true
5731
- },
5732
- {
5733
- "type": "string",
5734
- "description": "lfs oid",
5735
- "name": "oid",
5736
- "in": "path",
5737
- "required": true
5738
- },
5739
- {
5740
- "type": "string",
5741
- "description": "download filename",
5742
- "name": "name",
5743
- "in": "query",
5744
- "required": true
5745
- }
5746
- ],
5747
- "responses": {
5748
- "404": {
5749
- "description": "Not Found",
5750
- "schema": {
5751
- "$ref": "#/definitions/die.WebError"
5752
- }
5753
- },
5754
- "500": {
5755
- "description": "Internal Server Error",
5756
- "schema": {
5757
- "$ref": "#/definitions/die.WebError"
5758
- }
5759
- }
5760
- },
5761
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
5762
- "path": "/{repo}/-/lfs/{oid}",
5763
- "method": "get"
5764
- },
5765
5934
  "repo.members.list": {
5766
5935
  "tags": [
5767
5936
  "Members"
@@ -6017,7 +6186,7 @@
6017
6186
  "parameters": [
6018
6187
  {
6019
6188
  "type": "string",
6020
- "description": "repo",
6189
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6021
6190
  "name": "repo",
6022
6191
  "in": "path",
6023
6192
  "required": true
@@ -6028,7 +6197,7 @@
6028
6197
  "type": "integer"
6029
6198
  },
6030
6199
  "collectionFormat": "csv",
6031
- "description": "pull request numbers",
6200
+ "description": "Pull唯一标识编号",
6032
6201
  "name": "n",
6033
6202
  "in": "query",
6034
6203
  "required": true
@@ -6070,7 +6239,7 @@
6070
6239
  "parameters": [
6071
6240
  {
6072
6241
  "type": "string",
6073
- "description": "repo",
6242
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6074
6243
  "name": "repo",
6075
6244
  "in": "path",
6076
6245
  "required": true
@@ -6078,57 +6247,72 @@
6078
6247
  {
6079
6248
  "type": "integer",
6080
6249
  "default": 1,
6081
- "description": "pagination page number",
6250
+ "description": "分页页码。",
6082
6251
  "name": "page",
6083
6252
  "in": "query"
6084
6253
  },
6085
6254
  {
6086
6255
  "type": "integer",
6087
- "default": 30,
6088
- "description": "pagination page size",
6256
+ "default": 10,
6257
+ "description": "分页页大小。",
6089
6258
  "name": "page_size",
6090
6259
  "in": "query"
6091
6260
  },
6092
6261
  {
6093
6262
  "type": "string",
6094
6263
  "default": "open",
6095
- "description": "pull state `open`,`closed`, `all`",
6264
+ "description": "合并请求状态过滤。可选值:`open`,`closed`,`all`",
6096
6265
  "name": "state",
6097
6266
  "in": "query"
6098
6267
  },
6099
6268
  {
6100
6269
  "type": "string",
6101
- "description": "pull authors name, example: 张三,李四",
6270
+ "description": "作者名称过滤。示例值:`张三,李四`",
6102
6271
  "name": "authors",
6103
6272
  "in": "query"
6104
6273
  },
6105
6274
  {
6106
6275
  "type": "string",
6107
- "description": "pull reviewers name, example: 张三,李四; - means nobody to review",
6276
+ "description": "评审人名称过滤,-表示无评审人。示例值:`张三,李四`,`-`",
6108
6277
  "name": "reviewers",
6109
6278
  "in": "query"
6110
6279
  },
6111
6280
  {
6112
6281
  "type": "string",
6113
- "description": "pull assignees name, example: 张三,李四,-; - means assign to nobody",
6282
+ "default": "contains_any",
6283
+ "description": "评审者操作符。示例值:`contains_any`,`contains_all`",
6284
+ "name": "reviewers_operator",
6285
+ "in": "query"
6286
+ },
6287
+ {
6288
+ "type": "string",
6289
+ "description": "处理人名称过滤,-表示无处理人。示例值:`张三,李四`,`-`",
6114
6290
  "name": "assignees",
6115
6291
  "in": "query"
6116
6292
  },
6117
6293
  {
6118
6294
  "type": "string",
6119
- "description": "pull labels example: git,bug,feature",
6295
+ "default": "contains_any",
6296
+ "description": "处理人操作符。示例值:`contains_any`,`contains_all`",
6297
+ "name": "assignees_operator",
6298
+ "in": "query"
6299
+ },
6300
+ {
6301
+ "type": "string",
6302
+ "description": "标签过滤。示例值:`git,bug,feature`",
6120
6303
  "name": "labels",
6121
6304
  "in": "query"
6122
6305
  },
6123
6306
  {
6124
6307
  "type": "string",
6125
- "description": "pull labels operator example: contains_any,contains_all default: contains_any",
6308
+ "default": "contains_any",
6309
+ "description": "标签操作符。示例值:`contains_any`,`contains_all`",
6126
6310
  "name": "labels_operator",
6127
6311
  "in": "query"
6128
6312
  },
6129
6313
  {
6130
6314
  "type": "string",
6131
- "description": "pull base ref, example: refs/heads/master",
6315
+ "description": "目标分支引用。示例值:`master`",
6132
6316
  "name": "base_ref",
6133
6317
  "in": "query"
6134
6318
  }
@@ -6169,7 +6353,7 @@
6169
6353
  "parameters": [
6170
6354
  {
6171
6355
  "type": "string",
6172
- "description": "repo",
6356
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6173
6357
  "name": "repo",
6174
6358
  "in": "path",
6175
6359
  "required": true
@@ -6217,14 +6401,14 @@
6217
6401
  "parameters": [
6218
6402
  {
6219
6403
  "type": "string",
6220
- "description": "repo",
6404
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6221
6405
  "name": "repo",
6222
6406
  "in": "path",
6223
6407
  "required": true
6224
6408
  },
6225
6409
  {
6226
6410
  "type": "string",
6227
- "description": "pull request number",
6411
+ "description": "Pull唯一标识编号。",
6228
6412
  "name": "number",
6229
6413
  "in": "path",
6230
6414
  "required": true
@@ -6263,14 +6447,14 @@
6263
6447
  "parameters": [
6264
6448
  {
6265
6449
  "type": "string",
6266
- "description": "repo",
6450
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6267
6451
  "name": "repo",
6268
6452
  "in": "path",
6269
6453
  "required": true
6270
6454
  },
6271
6455
  {
6272
6456
  "type": "string",
6273
- "description": "Pull Request Number",
6457
+ "description": "Pull唯一标识编号。",
6274
6458
  "name": "number",
6275
6459
  "in": "path",
6276
6460
  "required": true
@@ -6318,14 +6502,14 @@
6318
6502
  "parameters": [
6319
6503
  {
6320
6504
  "type": "string",
6321
- "description": "repo",
6505
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6322
6506
  "name": "repo",
6323
6507
  "in": "path",
6324
6508
  "required": true
6325
6509
  },
6326
6510
  {
6327
6511
  "type": "string",
6328
- "description": "pull request number",
6512
+ "description": "Pull唯一标识编号。",
6329
6513
  "name": "number",
6330
6514
  "in": "path",
6331
6515
  "required": true
@@ -6354,7 +6538,7 @@
6354
6538
  }
6355
6539
  }
6356
6540
  },
6357
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
6541
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
6358
6542
  "path": "/{repo}/-/pulls/{number}/assignees",
6359
6543
  "method": "get"
6360
6544
  },
@@ -6367,14 +6551,14 @@
6367
6551
  "parameters": [
6368
6552
  {
6369
6553
  "type": "string",
6370
- "description": "repo",
6554
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6371
6555
  "name": "repo",
6372
6556
  "in": "path",
6373
6557
  "required": true
6374
6558
  },
6375
6559
  {
6376
6560
  "type": "string",
6377
- "description": "number",
6561
+ "description": "Pull唯一标识编号。",
6378
6562
  "name": "number",
6379
6563
  "in": "path",
6380
6564
  "required": true
@@ -6409,7 +6593,7 @@
6409
6593
  }
6410
6594
  }
6411
6595
  },
6412
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
6596
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
6413
6597
  "path": "/{repo}/-/pulls/{number}/assignees",
6414
6598
  "method": "post"
6415
6599
  },
@@ -6422,14 +6606,14 @@
6422
6606
  "parameters": [
6423
6607
  {
6424
6608
  "type": "string",
6425
- "description": "repo",
6609
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6426
6610
  "name": "repo",
6427
6611
  "in": "path",
6428
6612
  "required": true
6429
6613
  },
6430
6614
  {
6431
6615
  "type": "string",
6432
- "description": "number",
6616
+ "description": "Pull唯一标识编号。",
6433
6617
  "name": "number",
6434
6618
  "in": "path",
6435
6619
  "required": true
@@ -6464,7 +6648,7 @@
6464
6648
  }
6465
6649
  }
6466
6650
  },
6467
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
6651
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
6468
6652
  "path": "/{repo}/-/pulls/{number}/assignees",
6469
6653
  "method": "delete"
6470
6654
  },
@@ -6477,21 +6661,21 @@
6477
6661
  "parameters": [
6478
6662
  {
6479
6663
  "type": "string",
6480
- "description": "repo",
6664
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6481
6665
  "name": "repo",
6482
6666
  "in": "path",
6483
6667
  "required": true
6484
6668
  },
6485
6669
  {
6486
6670
  "type": "string",
6487
- "description": "number",
6671
+ "description": "Pull唯一标识编号。",
6488
6672
  "name": "number",
6489
6673
  "in": "path",
6490
6674
  "required": true
6491
6675
  },
6492
6676
  {
6493
6677
  "type": "string",
6494
- "description": "assignee",
6678
+ "description": "待检查的处理人用户名。",
6495
6679
  "name": "assignee",
6496
6680
  "in": "path",
6497
6681
  "required": true
@@ -6514,7 +6698,7 @@
6514
6698
  }
6515
6699
  }
6516
6700
  },
6517
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
6701
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
6518
6702
  "path": "/{repo}/-/pulls/{number}/assignees/{assignee}",
6519
6703
  "method": "get"
6520
6704
  },
@@ -6527,14 +6711,14 @@
6527
6711
  "parameters": [
6528
6712
  {
6529
6713
  "type": "string",
6530
- "description": "repo",
6714
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6531
6715
  "name": "repo",
6532
6716
  "in": "path",
6533
6717
  "required": true
6534
6718
  },
6535
6719
  {
6536
6720
  "type": "string",
6537
- "description": "number",
6721
+ "description": "Pull唯一标识编号。",
6538
6722
  "name": "number",
6539
6723
  "in": "path",
6540
6724
  "required": true
@@ -6542,14 +6726,14 @@
6542
6726
  {
6543
6727
  "type": "integer",
6544
6728
  "default": 1,
6545
- "description": "pagination page number",
6729
+ "description": "分页页码。",
6546
6730
  "name": "page",
6547
6731
  "in": "query"
6548
6732
  },
6549
6733
  {
6550
6734
  "type": "integer",
6551
- "default": 30,
6552
- "description": "pagination page size",
6735
+ "default": 10,
6736
+ "description": "分页页大小。",
6553
6737
  "name": "page_size",
6554
6738
  "in": "query"
6555
6739
  }
@@ -6590,14 +6774,14 @@
6590
6774
  "parameters": [
6591
6775
  {
6592
6776
  "type": "string",
6593
- "description": "repo",
6777
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6594
6778
  "name": "repo",
6595
6779
  "in": "path",
6596
6780
  "required": true
6597
6781
  },
6598
6782
  {
6599
6783
  "type": "string",
6600
- "description": "number",
6784
+ "description": "Pull唯一标识编号。",
6601
6785
  "name": "number",
6602
6786
  "in": "path",
6603
6787
  "required": true
@@ -6645,21 +6829,21 @@
6645
6829
  "parameters": [
6646
6830
  {
6647
6831
  "type": "string",
6648
- "description": "repo",
6832
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6649
6833
  "name": "repo",
6650
6834
  "in": "path",
6651
6835
  "required": true
6652
6836
  },
6653
6837
  {
6654
6838
  "type": "string",
6655
- "description": "number",
6839
+ "description": "Pull唯一标识编号。",
6656
6840
  "name": "number",
6657
6841
  "in": "path",
6658
6842
  "required": true
6659
6843
  },
6660
6844
  {
6661
6845
  "type": "integer",
6662
- "description": "comment_id",
6846
+ "description": "PullComment唯一标识编号。",
6663
6847
  "name": "comment_id",
6664
6848
  "in": "path",
6665
6849
  "required": true
@@ -6698,21 +6882,21 @@
6698
6882
  "parameters": [
6699
6883
  {
6700
6884
  "type": "string",
6701
- "description": "repo",
6885
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6702
6886
  "name": "repo",
6703
6887
  "in": "path",
6704
6888
  "required": true
6705
6889
  },
6706
6890
  {
6707
6891
  "type": "string",
6708
- "description": "number",
6892
+ "description": "Pull唯一标识编号。",
6709
6893
  "name": "number",
6710
6894
  "in": "path",
6711
6895
  "required": true
6712
6896
  },
6713
6897
  {
6714
6898
  "type": "integer",
6715
- "description": "comment_id",
6899
+ "description": "PullComment唯一标识编号。",
6716
6900
  "name": "comment_id",
6717
6901
  "in": "path",
6718
6902
  "required": true
@@ -6760,14 +6944,14 @@
6760
6944
  "parameters": [
6761
6945
  {
6762
6946
  "type": "string",
6763
- "description": "repo",
6947
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6764
6948
  "name": "repo",
6765
6949
  "in": "path",
6766
6950
  "required": true
6767
6951
  },
6768
6952
  {
6769
6953
  "type": "integer",
6770
- "description": "pull number",
6954
+ "description": "Pull唯一标识编号。",
6771
6955
  "name": "number",
6772
6956
  "in": "path",
6773
6957
  "required": true
@@ -6806,14 +6990,14 @@
6806
6990
  "parameters": [
6807
6991
  {
6808
6992
  "type": "string",
6809
- "description": "repo",
6993
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6810
6994
  "name": "repo",
6811
6995
  "in": "path",
6812
6996
  "required": true
6813
6997
  },
6814
6998
  {
6815
6999
  "type": "string",
6816
- "description": "pull request number",
7000
+ "description": "Pull唯一标识编号。",
6817
7001
  "name": "number",
6818
7002
  "in": "path",
6819
7003
  "required": true
@@ -6821,14 +7005,14 @@
6821
7005
  {
6822
7006
  "type": "integer",
6823
7007
  "default": 1,
6824
- "description": "pagination page number",
7008
+ "description": "分页页码。",
6825
7009
  "name": "page",
6826
7010
  "in": "query"
6827
7011
  },
6828
7012
  {
6829
7013
  "type": "integer",
6830
- "default": 30,
6831
- "description": "pagination page size",
7014
+ "default": 10,
7015
+ "description": "分页页大小。",
6832
7016
  "name": "page_size",
6833
7017
  "in": "query"
6834
7018
  }
@@ -6856,7 +7040,7 @@
6856
7040
  }
6857
7041
  }
6858
7042
  },
6859
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
7043
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
6860
7044
  "path": "/{repo}/-/pulls/{number}/commits",
6861
7045
  "method": "get"
6862
7046
  },
@@ -6869,14 +7053,14 @@
6869
7053
  "parameters": [
6870
7054
  {
6871
7055
  "type": "string",
6872
- "description": "repo",
7056
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6873
7057
  "name": "repo",
6874
7058
  "in": "path",
6875
7059
  "required": true
6876
7060
  },
6877
7061
  {
6878
7062
  "type": "string",
6879
- "description": "pull request number",
7063
+ "description": "Pull唯一标识编号。",
6880
7064
  "name": "number",
6881
7065
  "in": "path",
6882
7066
  "required": true
@@ -6905,7 +7089,7 @@
6905
7089
  }
6906
7090
  }
6907
7091
  },
6908
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
7092
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
6909
7093
  "path": "/{repo}/-/pulls/{number}/files",
6910
7094
  "method": "get"
6911
7095
  },
@@ -6918,14 +7102,14 @@
6918
7102
  "parameters": [
6919
7103
  {
6920
7104
  "type": "string",
6921
- "description": "repo",
7105
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6922
7106
  "name": "repo",
6923
7107
  "in": "path",
6924
7108
  "required": true
6925
7109
  },
6926
7110
  {
6927
- "type": "string",
6928
- "description": "number",
7111
+ "type": "integer",
7112
+ "description": "Pull唯一标识编号。",
6929
7113
  "name": "number",
6930
7114
  "in": "path",
6931
7115
  "required": true
@@ -6933,14 +7117,14 @@
6933
7117
  {
6934
7118
  "type": "integer",
6935
7119
  "default": 1,
6936
- "description": "pagination page number",
7120
+ "description": "分页页码。",
6937
7121
  "name": "page",
6938
7122
  "in": "query"
6939
7123
  },
6940
7124
  {
6941
7125
  "type": "integer",
6942
- "default": 30,
6943
- "description": "pagination page size",
7126
+ "default": 10,
7127
+ "description": "分页页大小。",
6944
7128
  "name": "page_size",
6945
7129
  "in": "query"
6946
7130
  }
@@ -6968,7 +7152,7 @@
6968
7152
  }
6969
7153
  }
6970
7154
  },
6971
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
7155
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
6972
7156
  "path": "/{repo}/-/pulls/{number}/labels",
6973
7157
  "method": "get"
6974
7158
  },
@@ -6981,14 +7165,14 @@
6981
7165
  "parameters": [
6982
7166
  {
6983
7167
  "type": "string",
6984
- "description": "repo",
7168
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
6985
7169
  "name": "repo",
6986
7170
  "in": "path",
6987
7171
  "required": true
6988
7172
  },
6989
7173
  {
6990
7174
  "type": "string",
6991
- "description": "number",
7175
+ "description": "Pull唯一标识编号。",
6992
7176
  "name": "number",
6993
7177
  "in": "path",
6994
7178
  "required": true
@@ -7023,7 +7207,7 @@
7023
7207
  }
7024
7208
  }
7025
7209
  },
7026
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
7210
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
7027
7211
  "path": "/{repo}/-/pulls/{number}/labels",
7028
7212
  "method": "put"
7029
7213
  },
@@ -7036,14 +7220,14 @@
7036
7220
  "parameters": [
7037
7221
  {
7038
7222
  "type": "string",
7039
- "description": "repo",
7223
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7040
7224
  "name": "repo",
7041
7225
  "in": "path",
7042
7226
  "required": true
7043
7227
  },
7044
7228
  {
7045
7229
  "type": "string",
7046
- "description": "number",
7230
+ "description": "Pull唯一标识编号。",
7047
7231
  "name": "number",
7048
7232
  "in": "path",
7049
7233
  "required": true
@@ -7078,7 +7262,7 @@
7078
7262
  }
7079
7263
  }
7080
7264
  },
7081
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
7265
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
7082
7266
  "path": "/{repo}/-/pulls/{number}/labels",
7083
7267
  "method": "post"
7084
7268
  },
@@ -7091,14 +7275,14 @@
7091
7275
  "parameters": [
7092
7276
  {
7093
7277
  "type": "string",
7094
- "description": "repo",
7278
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7095
7279
  "name": "repo",
7096
7280
  "in": "path",
7097
7281
  "required": true
7098
7282
  },
7099
7283
  {
7100
7284
  "type": "string",
7101
- "description": "number",
7285
+ "description": "Pull唯一标识编号。",
7102
7286
  "name": "number",
7103
7287
  "in": "path",
7104
7288
  "required": true
@@ -7121,7 +7305,7 @@
7121
7305
  }
7122
7306
  }
7123
7307
  },
7124
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
7308
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
7125
7309
  "path": "/{repo}/-/pulls/{number}/labels",
7126
7310
  "method": "delete"
7127
7311
  },
@@ -7134,21 +7318,21 @@
7134
7318
  "parameters": [
7135
7319
  {
7136
7320
  "type": "string",
7137
- "description": "repo",
7321
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7138
7322
  "name": "repo",
7139
7323
  "in": "path",
7140
7324
  "required": true
7141
7325
  },
7142
7326
  {
7143
7327
  "type": "string",
7144
- "description": "number",
7328
+ "description": "Pull唯一标识编号。",
7145
7329
  "name": "number",
7146
7330
  "in": "path",
7147
7331
  "required": true
7148
7332
  },
7149
7333
  {
7150
7334
  "type": "string",
7151
- "description": "label name",
7335
+ "description": "标签名称。",
7152
7336
  "name": "name",
7153
7337
  "in": "path",
7154
7338
  "required": true
@@ -7174,7 +7358,7 @@
7174
7358
  }
7175
7359
  }
7176
7360
  },
7177
- "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
7361
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
7178
7362
  "path": "/{repo}/-/pulls/{number}/labels/{name}",
7179
7363
  "method": "delete"
7180
7364
  },
@@ -7187,14 +7371,14 @@
7187
7371
  "parameters": [
7188
7372
  {
7189
7373
  "type": "string",
7190
- "description": "repo",
7374
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7191
7375
  "name": "repo",
7192
7376
  "in": "path",
7193
7377
  "required": true
7194
7378
  },
7195
7379
  {
7196
7380
  "type": "string",
7197
- "description": "Pull Request Number",
7381
+ "description": "Pull唯一标识编号。",
7198
7382
  "name": "number",
7199
7383
  "in": "path",
7200
7384
  "required": true
@@ -7242,14 +7426,14 @@
7242
7426
  "parameters": [
7243
7427
  {
7244
7428
  "type": "string",
7245
- "description": "repo",
7429
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7246
7430
  "name": "repo",
7247
7431
  "in": "path",
7248
7432
  "required": true
7249
7433
  },
7250
7434
  {
7251
7435
  "type": "string",
7252
- "description": "number",
7436
+ "description": "Pull唯一标识编号。",
7253
7437
  "name": "number",
7254
7438
  "in": "path",
7255
7439
  "required": true
@@ -7257,14 +7441,14 @@
7257
7441
  {
7258
7442
  "type": "integer",
7259
7443
  "default": 1,
7260
- "description": "pagination page number",
7444
+ "description": "分页页码。",
7261
7445
  "name": "page",
7262
7446
  "in": "query"
7263
7447
  },
7264
7448
  {
7265
7449
  "type": "integer",
7266
- "default": 30,
7267
- "description": "pagination page size",
7450
+ "default": 10,
7451
+ "description": "分页页大小。",
7268
7452
  "name": "page_size",
7269
7453
  "in": "query"
7270
7454
  }
@@ -7311,14 +7495,14 @@
7311
7495
  "parameters": [
7312
7496
  {
7313
7497
  "type": "string",
7314
- "description": "repo",
7498
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7315
7499
  "name": "repo",
7316
7500
  "in": "path",
7317
7501
  "required": true
7318
7502
  },
7319
7503
  {
7320
7504
  "type": "string",
7321
- "description": "number",
7505
+ "description": "Pull唯一标识编号。",
7322
7506
  "name": "number",
7323
7507
  "in": "path",
7324
7508
  "required": true
@@ -7369,21 +7553,21 @@
7369
7553
  "parameters": [
7370
7554
  {
7371
7555
  "type": "string",
7372
- "description": "repo",
7556
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7373
7557
  "name": "repo",
7374
7558
  "in": "path",
7375
7559
  "required": true
7376
7560
  },
7377
7561
  {
7378
7562
  "type": "integer",
7379
- "description": "pull request number",
7563
+ "description": "Pull唯一标识编号。",
7380
7564
  "name": "number",
7381
7565
  "in": "path",
7382
7566
  "required": true
7383
7567
  },
7384
7568
  {
7385
7569
  "type": "integer",
7386
- "description": "pull request review id",
7570
+ "description": "PullReview唯一标识编号。",
7387
7571
  "name": "review_id",
7388
7572
  "in": "path",
7389
7573
  "required": true
@@ -7391,14 +7575,14 @@
7391
7575
  {
7392
7576
  "type": "integer",
7393
7577
  "default": 1,
7394
- "description": "pagination page number",
7578
+ "description": "分页页码。",
7395
7579
  "name": "page",
7396
7580
  "in": "query"
7397
7581
  },
7398
7582
  {
7399
7583
  "type": "integer",
7400
- "default": 30,
7401
- "description": "pagination page size",
7584
+ "default": 10,
7585
+ "description": "分页页大小。",
7402
7586
  "name": "page_size",
7403
7587
  "in": "query"
7404
7588
  }
@@ -7430,6 +7614,68 @@
7430
7614
  "path": "/{repo}/-/pulls/{number}/reviews/{review_id}/comments",
7431
7615
  "method": "get"
7432
7616
  },
7617
+ "repo.pulls.reviews.replies.post": {
7618
+ "tags": [
7619
+ "Pulls"
7620
+ ],
7621
+ "summary": "回复一个 review 评审",
7622
+ "operationId": "PostPullRequestReviewReply",
7623
+ "parameters": [
7624
+ {
7625
+ "type": "string",
7626
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7627
+ "name": "repo",
7628
+ "in": "path",
7629
+ "required": true
7630
+ },
7631
+ {
7632
+ "type": "integer",
7633
+ "description": "Pull唯一标识编号。",
7634
+ "name": "number",
7635
+ "in": "path",
7636
+ "required": true
7637
+ },
7638
+ {
7639
+ "type": "integer",
7640
+ "description": "PullReview唯一标识编号。",
7641
+ "name": "review_id",
7642
+ "in": "path",
7643
+ "required": true
7644
+ },
7645
+ {
7646
+ "description": "post pull request review reply form",
7647
+ "name": "post_pull_request_review_reply_form",
7648
+ "in": "body",
7649
+ "required": true,
7650
+ "schema": {
7651
+ "$ref": "#/definitions/api.PostPullRequestReviewReplyForm"
7652
+ }
7653
+ }
7654
+ ],
7655
+ "responses": {
7656
+ "201": {
7657
+ "description": "Created",
7658
+ "schema": {
7659
+ "$ref": "#/definitions/api.PullReviewComment"
7660
+ }
7661
+ },
7662
+ "404": {
7663
+ "description": "Not Found",
7664
+ "schema": {
7665
+ "$ref": "#/definitions/die.WebError"
7666
+ }
7667
+ },
7668
+ "500": {
7669
+ "description": "Internal Server Error",
7670
+ "schema": {
7671
+ "$ref": "#/definitions/die.WebError"
7672
+ }
7673
+ }
7674
+ },
7675
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
7676
+ "path": "/{repo}/-/pulls/{number}/reviews/{review_id}/replies",
7677
+ "method": "post"
7678
+ },
7433
7679
  "repo.releases.list": {
7434
7680
  "tags": [
7435
7681
  "Releases"
@@ -7447,14 +7693,14 @@
7447
7693
  {
7448
7694
  "type": "integer",
7449
7695
  "default": 1,
7450
- "description": "分页页码",
7696
+ "description": "分页页码。",
7451
7697
  "name": "page",
7452
7698
  "in": "query"
7453
7699
  },
7454
7700
  {
7455
7701
  "type": "integer",
7456
7702
  "default": 30,
7457
- "description": "分页页大小",
7703
+ "description": "分页页大小。",
7458
7704
  "name": "page_size",
7459
7705
  "in": "query"
7460
7706
  }
@@ -7495,7 +7741,7 @@
7495
7741
  "parameters": [
7496
7742
  {
7497
7743
  "type": "string",
7498
- "description": "repo",
7744
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7499
7745
  "name": "repo",
7500
7746
  "in": "path",
7501
7747
  "required": true
@@ -7543,21 +7789,21 @@
7543
7789
  "parameters": [
7544
7790
  {
7545
7791
  "type": "string",
7546
- "description": "Repo",
7792
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7547
7793
  "name": "repo",
7548
7794
  "in": "path",
7549
7795
  "required": true
7550
7796
  },
7551
7797
  {
7552
7798
  "type": "string",
7553
- "description": "tag name(e.g. v1.0)",
7799
+ "description": "标签名称。示例:`v1.0.0`",
7554
7800
  "name": "tag",
7555
7801
  "in": "path",
7556
7802
  "required": true
7557
7803
  },
7558
7804
  {
7559
7805
  "type": "string",
7560
- "description": "filename (e.g. test.png)",
7806
+ "description": "文件名称。示例:`test.png`",
7561
7807
  "name": "filename",
7562
7808
  "in": "path",
7563
7809
  "required": true
@@ -7565,7 +7811,7 @@
7565
7811
  {
7566
7812
  "type": "boolean",
7567
7813
  "default": false,
7568
- "description": "true 的话 302 的下载地址有效期为12个小时,但最多只能下载10",
7814
+ "description": "是否可以下载,true表示302的下载地址有效期12小时,最多下载10次。",
7569
7815
  "name": "share",
7570
7816
  "in": "query"
7571
7817
  }
@@ -7588,7 +7834,7 @@
7588
7834
  "parameters": [
7589
7835
  {
7590
7836
  "type": "string",
7591
- "description": "repo",
7837
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7592
7838
  "name": "repo",
7593
7839
  "in": "path",
7594
7840
  "required": true
@@ -7627,14 +7873,14 @@
7627
7873
  "parameters": [
7628
7874
  {
7629
7875
  "type": "string",
7630
- "description": "repo",
7876
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7631
7877
  "name": "repo",
7632
7878
  "in": "path",
7633
7879
  "required": true
7634
7880
  },
7635
7881
  {
7636
7882
  "type": "string",
7637
- "description": "tag name",
7883
+ "description": "标签名称。",
7638
7884
  "name": "tag",
7639
7885
  "in": "path",
7640
7886
  "required": true
@@ -7673,14 +7919,14 @@
7673
7919
  "parameters": [
7674
7920
  {
7675
7921
  "type": "string",
7676
- "description": "repo",
7922
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7677
7923
  "name": "repo",
7678
7924
  "in": "path",
7679
7925
  "required": true
7680
7926
  },
7681
7927
  {
7682
7928
  "type": "string",
7683
- "description": "release id",
7929
+ "description": "版本唯一标识符。",
7684
7930
  "name": "release_id",
7685
7931
  "in": "path",
7686
7932
  "required": true
@@ -7719,14 +7965,14 @@
7719
7965
  "parameters": [
7720
7966
  {
7721
7967
  "type": "string",
7722
- "description": "repo",
7968
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7723
7969
  "name": "repo",
7724
7970
  "in": "path",
7725
7971
  "required": true
7726
7972
  },
7727
7973
  {
7728
7974
  "type": "string",
7729
- "description": "release id",
7975
+ "description": "版本唯一标识符。",
7730
7976
  "name": "release_id",
7731
7977
  "in": "path",
7732
7978
  "required": true
@@ -7762,14 +8008,14 @@
7762
8008
  "parameters": [
7763
8009
  {
7764
8010
  "type": "string",
7765
- "description": "repo",
8011
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7766
8012
  "name": "repo",
7767
8013
  "in": "path",
7768
8014
  "required": true
7769
8015
  },
7770
8016
  {
7771
8017
  "type": "string",
7772
- "description": "release id",
8018
+ "description": "版本唯一标识符。",
7773
8019
  "name": "release_id",
7774
8020
  "in": "path",
7775
8021
  "required": true
@@ -7814,31 +8060,38 @@
7814
8060
  "parameters": [
7815
8061
  {
7816
8062
  "type": "string",
7817
- "description": "repo",
8063
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7818
8064
  "name": "repo",
7819
8065
  "in": "path",
7820
8066
  "required": true
7821
8067
  },
7822
8068
  {
7823
8069
  "type": "string",
7824
- "description": "release id",
8070
+ "description": "版本唯一标识符。",
7825
8071
  "name": "release_id",
7826
8072
  "in": "path",
7827
8073
  "required": true
7828
8074
  },
7829
8075
  {
7830
8076
  "type": "string",
7831
- "description": "upload token",
8077
+ "description": "PostReleaseAssetUploadURL接口返回值verify_url字段提取的upload_token。",
7832
8078
  "name": "upload_token",
7833
8079
  "in": "path",
7834
8080
  "required": true
7835
8081
  },
7836
8082
  {
7837
8083
  "type": "string",
7838
- "description": "release asset path",
8084
+ "description": "PostReleaseAssetUploadURL接口返回值verify_url字段提取的asset_path。",
7839
8085
  "name": "asset_path",
7840
8086
  "in": "path",
7841
8087
  "required": true
8088
+ },
8089
+ {
8090
+ "type": "integer",
8091
+ "format": "int64",
8092
+ "description": "附件保持的天数。0 表示永久,最大不能超过 180 天",
8093
+ "name": "ttl",
8094
+ "in": "query"
7842
8095
  }
7843
8096
  ],
7844
8097
  "responses": {
@@ -7871,14 +8124,14 @@
7871
8124
  "parameters": [
7872
8125
  {
7873
8126
  "type": "string",
7874
- "description": "repo",
8127
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7875
8128
  "name": "repo",
7876
8129
  "in": "path",
7877
8130
  "required": true
7878
8131
  },
7879
8132
  {
7880
8133
  "type": "string",
7881
- "description": "release id",
8134
+ "description": "版本唯一标识符。",
7882
8135
  "name": "release_id",
7883
8136
  "in": "path",
7884
8137
  "required": true
@@ -7926,21 +8179,21 @@
7926
8179
  "parameters": [
7927
8180
  {
7928
8181
  "type": "string",
7929
- "description": "repo",
8182
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7930
8183
  "name": "repo",
7931
8184
  "in": "path",
7932
8185
  "required": true
7933
8186
  },
7934
8187
  {
7935
8188
  "type": "string",
7936
- "description": "release id",
8189
+ "description": "版本唯一标识符。",
7937
8190
  "name": "release_id",
7938
8191
  "in": "path",
7939
8192
  "required": true
7940
8193
  },
7941
8194
  {
7942
8195
  "type": "string",
7943
- "description": "asset id",
8196
+ "description": "附件唯一标识符。",
7944
8197
  "name": "asset_id",
7945
8198
  "in": "path",
7946
8199
  "required": true
@@ -7979,21 +8232,21 @@
7979
8232
  "parameters": [
7980
8233
  {
7981
8234
  "type": "string",
7982
- "description": "repo",
8235
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
7983
8236
  "name": "repo",
7984
8237
  "in": "path",
7985
8238
  "required": true
7986
8239
  },
7987
8240
  {
7988
8241
  "type": "string",
7989
- "description": "release id",
8242
+ "description": "版本唯一标识符。",
7990
8243
  "name": "release_id",
7991
8244
  "in": "path",
7992
8245
  "required": true
7993
8246
  },
7994
8247
  {
7995
8248
  "type": "string",
7996
- "description": "asset id",
8249
+ "description": "附件唯一标识符。",
7997
8250
  "name": "asset_id",
7998
8251
  "in": "path",
7999
8252
  "required": true
@@ -8669,7 +8922,7 @@
8669
8922
  "parameters": [
8670
8923
  {
8671
8924
  "type": "string",
8672
- "description": "repo",
8925
+ "description": "不带.git后缀的仓库名称。格式:`组织名称/仓库名称`",
8673
8926
  "name": "repo",
8674
8927
  "in": "path",
8675
8928
  "required": true
@@ -8803,6 +9056,33 @@
8803
9056
  "path": "/{repo}/-/workspace/start",
8804
9057
  "method": "post"
8805
9058
  },
9059
+ "slug.charge.specialAmount.get": {
9060
+ "description": "查看根组织的特权额度,需要根组织的 master 以上权限才可以查看\n访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r",
9061
+ "tags": [
9062
+ "Charge"
9063
+ ],
9064
+ "summary": "查看特权额度",
9065
+ "operationId": "GetSpecialAmount",
9066
+ "parameters": [
9067
+ {
9068
+ "type": "string",
9069
+ "description": "group slug",
9070
+ "name": "slug",
9071
+ "in": "path",
9072
+ "required": true
9073
+ }
9074
+ ],
9075
+ "responses": {
9076
+ "200": {
9077
+ "description": "OK",
9078
+ "schema": {
9079
+ "$ref": "#/definitions/dto.SpecialAmount"
9080
+ }
9081
+ }
9082
+ },
9083
+ "path": "/{slug}/-/charge/special-amount",
9084
+ "method": "get"
9085
+ },
8806
9086
  "slug.contributor.trend.get": {
8807
9087
  "tags": [
8808
9088
  "RepoContributor"
@@ -8856,6 +9136,97 @@
8856
9136
  "path": "/{slug}/-/contributor/trend",
8857
9137
  "method": "get"
8858
9138
  },
9139
+ "slug.lfs.get": {
9140
+ "tags": [
9141
+ "Git"
9142
+ ],
9143
+ "summary": "获取 git lfs 文件下载链接",
9144
+ "operationId": "GetPresignedLFSDownloadLink",
9145
+ "parameters": [
9146
+ {
9147
+ "type": "string",
9148
+ "description": "仓库标识符。格式:`组织名称/仓库名称`",
9149
+ "name": "slug",
9150
+ "in": "path",
9151
+ "required": true
9152
+ },
9153
+ {
9154
+ "type": "string",
9155
+ "description": "LFS文件的唯一标识符。",
9156
+ "name": "oid",
9157
+ "in": "path",
9158
+ "required": true
9159
+ },
9160
+ {
9161
+ "type": "string",
9162
+ "description": "LFS文件名称。",
9163
+ "name": "name",
9164
+ "in": "query",
9165
+ "required": true
9166
+ }
9167
+ ],
9168
+ "responses": {
9169
+ "404": {
9170
+ "description": "Not Found",
9171
+ "schema": {
9172
+ "$ref": "#/definitions/die.WebError"
9173
+ }
9174
+ },
9175
+ "500": {
9176
+ "description": "Internal Server Error",
9177
+ "schema": {
9178
+ "$ref": "#/definitions/die.WebError"
9179
+ }
9180
+ }
9181
+ },
9182
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
9183
+ "path": "/{slug}/-/lfs/{oid}",
9184
+ "method": "get"
9185
+ },
9186
+ "slug.listAssets.list": {
9187
+ "tags": [
9188
+ "Assets"
9189
+ ],
9190
+ "summary": "仓库的 asset 记录列表",
9191
+ "operationId": "ListAssets",
9192
+ "parameters": [
9193
+ {
9194
+ "type": "string",
9195
+ "description": "slug",
9196
+ "name": "slug",
9197
+ "in": "path",
9198
+ "required": true
9199
+ },
9200
+ {
9201
+ "type": "integer",
9202
+ "default": 1,
9203
+ "description": "第几页,从1开始",
9204
+ "name": "page",
9205
+ "in": "query"
9206
+ },
9207
+ {
9208
+ "type": "integer",
9209
+ "default": 10,
9210
+ "description": "每页多少条数据",
9211
+ "name": "page_size",
9212
+ "in": "query"
9213
+ }
9214
+ ],
9215
+ "responses": {
9216
+ "200": {
9217
+ "description": "OK",
9218
+ "schema": {
9219
+ "type": "array",
9220
+ "items": {
9221
+ "$ref": "#/definitions/dto.AssetRecords"
9222
+ }
9223
+ }
9224
+ }
9225
+ },
9226
+ "description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
9227
+ "path": "/{slug}/-/list-assets",
9228
+ "method": "get"
9229
+ },
8859
9230
  "slug.listMembers.list": {
8860
9231
  "tags": [
8861
9232
  "Members"
@@ -9236,7 +9607,8 @@
9236
9607
  "pypi",
9237
9608
  "nuget",
9238
9609
  "composer",
9239
- "conan"
9610
+ "conan",
9611
+ "cargo"
9240
9612
  ],
9241
9613
  "type": "string",
9242
9614
  "description": "制品类型。Type.",
@@ -9254,7 +9626,7 @@
9254
9626
  {
9255
9627
  "type": "integer",
9256
9628
  "default": 10,
9257
- "description": "页数。Pagination page size",
9629
+ "description": "页数。Pagination page size.",
9258
9630
  "name": "page_size",
9259
9631
  "in": "query"
9260
9632
  },
@@ -9266,13 +9638,13 @@
9266
9638
  "name_descend"
9267
9639
  ],
9268
9640
  "type": "string",
9269
- "description": "顺序类型。Ordering type",
9641
+ "description": "顺序类型。Ordering type.",
9270
9642
  "name": "ordering",
9271
9643
  "in": "query"
9272
9644
  },
9273
9645
  {
9274
9646
  "type": "string",
9275
- "description": "关键字。Key word to search package name",
9647
+ "description": "关键字。Key word to search package name.",
9276
9648
  "name": "name",
9277
9649
  "in": "query"
9278
9650
  }
@@ -9377,7 +9749,8 @@
9377
9749
  "pypi",
9378
9750
  "nuget",
9379
9751
  "composer",
9380
- "conan"
9752
+ "conan",
9753
+ "cargo"
9381
9754
  ],
9382
9755
  "type": "string",
9383
9756
  "description": "制品类型。Type.",
@@ -9427,7 +9800,8 @@
9427
9800
  "pypi",
9428
9801
  "nuget",
9429
9802
  "composer",
9430
- "conan"
9803
+ "conan",
9804
+ "cargo"
9431
9805
  ],
9432
9806
  "type": "string",
9433
9807
  "description": "Type",
@@ -9499,7 +9873,8 @@
9499
9873
  "pypi",
9500
9874
  "nuget",
9501
9875
  "composer",
9502
- "conan"
9876
+ "conan",
9877
+ "cargo"
9503
9878
  ],
9504
9879
  "type": "string",
9505
9880
  "description": "Type",
@@ -9556,7 +9931,8 @@
9556
9931
  "pypi",
9557
9932
  "nuget",
9558
9933
  "composer",
9559
- "conan"
9934
+ "conan",
9935
+ "cargo"
9560
9936
  ],
9561
9937
  "type": "string",
9562
9938
  "description": "制品类型。Type.",
@@ -9597,8 +9973,8 @@
9597
9973
  },
9598
9974
  {
9599
9975
  "type": "string",
9600
- "description": "关键词。Key word.",
9601
- "name": "name",
9976
+ "description": "关键字。Key word to search tag name.",
9977
+ "name": "tag_name",
9602
9978
  "in": "query"
9603
9979
  }
9604
9980
  ],
@@ -9606,7 +9982,7 @@
9606
9982
  "200": {
9607
9983
  "description": "OK",
9608
9984
  "schema": {
9609
- "$ref": "#/definitions/dto.Tag"
9985
+ "$ref": "#/definitions/git_woa_com_cnb_monorepo_platform_service-api_internal_models_artifactory_dto.Tag"
9610
9986
  }
9611
9987
  }
9612
9988
  },