gitee.com/openeuler/go-gitee@v0.0.0-20220530104019-3af895bc380c/docs/PullRequestsApi.md (about) 1 # \PullRequestsApi 2 3 All URIs are relative to *https://gitee.com/api* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**DeleteV5ReposOwnerRepoPullsCommentsId**](PullRequestsApi.md#DeleteV5ReposOwnerRepoPullsCommentsId) | **Delete** /v5/repos/{owner}/{repo}/pulls/comments/{id} | 删除评论 8 [**DeleteV5ReposOwnerRepoPullsLabel**](PullRequestsApi.md#DeleteV5ReposOwnerRepoPullsLabel) | **Delete** /v5/repos/{owner}/{repo}/pulls/{number}/labels/{name} | 删除 Pull Request 标签 9 [**DeleteV5ReposOwnerRepoPullsNumberAssignees**](PullRequestsApi.md#DeleteV5ReposOwnerRepoPullsNumberAssignees) | **Delete** /v5/repos/{owner}/{repo}/pulls/{number}/assignees | 取消用户审查 Pull Request 10 [**DeleteV5ReposOwnerRepoPullsNumberTesters**](PullRequestsApi.md#DeleteV5ReposOwnerRepoPullsNumberTesters) | **Delete** /v5/repos/{owner}/{repo}/pulls/{number}/testers | 取消用户测试 Pull Request 11 [**GetV5ReposOwnerRepoPulls**](PullRequestsApi.md#GetV5ReposOwnerRepoPulls) | **Get** /v5/repos/{owner}/{repo}/pulls | 获取Pull Request列表 12 [**GetV5ReposOwnerRepoPullsComments**](PullRequestsApi.md#GetV5ReposOwnerRepoPullsComments) | **Get** /v5/repos/{owner}/{repo}/pulls/comments | 获取该仓库下的所有Pull Request评论 13 [**GetV5ReposOwnerRepoPullsCommentsId**](PullRequestsApi.md#GetV5ReposOwnerRepoPullsCommentsId) | **Get** /v5/repos/{owner}/{repo}/pulls/comments/{id} | 获取Pull Request的某个评论 14 [**GetV5ReposOwnerRepoPullsNumber**](PullRequestsApi.md#GetV5ReposOwnerRepoPullsNumber) | **Get** /v5/repos/{owner}/{repo}/pulls/{number} | 获取单个Pull Request 15 [**GetV5ReposOwnerRepoPullsNumberComments**](PullRequestsApi.md#GetV5ReposOwnerRepoPullsNumberComments) | **Get** /v5/repos/{owner}/{repo}/pulls/{number}/comments | 获取某个Pull Request的所有评论 16 [**GetV5ReposOwnerRepoPullsNumberCommits**](PullRequestsApi.md#GetV5ReposOwnerRepoPullsNumberCommits) | **Get** /v5/repos/{owner}/{repo}/pulls/{number}/commits | 获取某Pull Request的所有Commit信息。最多显示250条Commit 17 [**GetV5ReposOwnerRepoPullsNumberFiles**](PullRequestsApi.md#GetV5ReposOwnerRepoPullsNumberFiles) | **Get** /v5/repos/{owner}/{repo}/pulls/{number}/files | Pull Request Commit文件列表。最多显示300条diff 18 [**GetV5ReposOwnerRepoPullsNumberIssues**](PullRequestsApi.md#GetV5ReposOwnerRepoPullsNumberIssues) | **Get** /v5/repos/{owner}/{repo}/pulls/{number}/issues | 获取 Pull Request 关联的 issues 19 [**GetV5ReposOwnerRepoPullsNumberLabels**](PullRequestsApi.md#GetV5ReposOwnerRepoPullsNumberLabels) | **Get** /v5/repos/{owner}/{repo}/pulls/{number}/labels | 获取某个 Pull Request 的所有标签 20 [**GetV5ReposOwnerRepoPullsNumberMerge**](PullRequestsApi.md#GetV5ReposOwnerRepoPullsNumberMerge) | **Get** /v5/repos/{owner}/{repo}/pulls/{number}/merge | 判断Pull Request是否已经合并 21 [**GetV5ReposOwnerRepoPullsNumberOperateLogs**](PullRequestsApi.md#GetV5ReposOwnerRepoPullsNumberOperateLogs) | **Get** /v5/repos/{owner}/{repo}/pulls/{number}/operate_logs | 获取某个Pull Request的操作日志 22 [**PatchV5ReposOwnerRepoPullsCommentsId**](PullRequestsApi.md#PatchV5ReposOwnerRepoPullsCommentsId) | **Patch** /v5/repos/{owner}/{repo}/pulls/comments/{id} | 编辑评论 23 [**PatchV5ReposOwnerRepoPullsNumber**](PullRequestsApi.md#PatchV5ReposOwnerRepoPullsNumber) | **Patch** /v5/repos/{owner}/{repo}/pulls/{number} | 更新Pull Request信息 24 [**PostV5ReposOwnerRepoPulls**](PullRequestsApi.md#PostV5ReposOwnerRepoPulls) | **Post** /v5/repos/{owner}/{repo}/pulls | 创建Pull Request 25 [**PostV5ReposOwnerRepoPullsNumberAssignees**](PullRequestsApi.md#PostV5ReposOwnerRepoPullsNumberAssignees) | **Post** /v5/repos/{owner}/{repo}/pulls/{number}/assignees | 指派用户审查 Pull Request 26 [**PostV5ReposOwnerRepoPullsNumberComments**](PullRequestsApi.md#PostV5ReposOwnerRepoPullsNumberComments) | **Post** /v5/repos/{owner}/{repo}/pulls/{number}/comments | 提交Pull Request评论 27 [**PostV5ReposOwnerRepoPullsNumberLabels**](PullRequestsApi.md#PostV5ReposOwnerRepoPullsNumberLabels) | **Post** /v5/repos/{owner}/{repo}/pulls/{number}/labels | 创建 Pull Request 标签 28 [**PostV5ReposOwnerRepoPullsNumberTesters**](PullRequestsApi.md#PostV5ReposOwnerRepoPullsNumberTesters) | **Post** /v5/repos/{owner}/{repo}/pulls/{number}/testers | 指派用户测试 Pull Request 29 [**PutV5ReposOwnerRepoPullsNumberLabels**](PullRequestsApi.md#PutV5ReposOwnerRepoPullsNumberLabels) | **Put** /v5/repos/{owner}/{repo}/pulls/{number}/labels | 替换Pull Request 所有标签 30 [**PutV5ReposOwnerRepoPullsNumberMerge**](PullRequestsApi.md#PutV5ReposOwnerRepoPullsNumberMerge) | **Put** /v5/repos/{owner}/{repo}/pulls/{number}/merge | 合并Pull Request 31 32 33 # **DeleteV5ReposOwnerRepoPullsCommentsId** 34 > DeleteV5ReposOwnerRepoPullsCommentsId(ctx, owner, repo, id, optional) 35 删除评论 36 37 删除评论 38 39 ### Required Parameters 40 41 Name | Type | Description | Notes 42 ------------- | ------------- | ------------- | ------------- 43 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 44 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 45 **repo** | **string**| 仓库路径(path) | 46 **id** | **int32**| 评论的ID | 47 **optional** | ***DeleteV5ReposOwnerRepoPullsCommentsIdOpts** | optional parameters | nil if no parameters 48 49 ### Optional Parameters 50 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoPullsCommentsIdOpts struct 51 52 Name | Type | Description | Notes 53 ------------- | ------------- | ------------- | ------------- 54 55 56 57 **accessToken** | **optional.String**| 用户授权码 | 58 59 ### Return type 60 61 (empty response body) 62 63 ### Authorization 64 65 No authorization required 66 67 ### HTTP request headers 68 69 - **Content-Type**: application/json, multipart/form-data 70 - **Accept**: application/json 71 72 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 73 74 # **DeleteV5ReposOwnerRepoPullsLabel** 75 > DeleteV5ReposOwnerRepoPullsLabel(ctx, owner, repo, number, name, optional) 76 删除 Pull Request 标签 77 78 删除 Pull Request 标签 79 80 ### Required Parameters 81 82 Name | Type | Description | Notes 83 ------------- | ------------- | ------------- | ------------- 84 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 85 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 86 **repo** | **string**| 仓库路径(path) | 87 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 88 **name** | **string**| 标签名称 | 89 **optional** | ***DeleteV5ReposOwnerRepoPullsLabelOpts** | optional parameters | nil if no parameters 90 91 ### Optional Parameters 92 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoPullsLabelOpts struct 93 94 Name | Type | Description | Notes 95 ------------- | ------------- | ------------- | ------------- 96 97 98 99 100 **accessToken** | **optional.String**| 用户授权码 | 101 102 ### Return type 103 104 (empty response body) 105 106 ### Authorization 107 108 No authorization required 109 110 ### HTTP request headers 111 112 - **Content-Type**: application/json, multipart/form-data 113 - **Accept**: application/json 114 115 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 116 117 # **DeleteV5ReposOwnerRepoPullsNumberAssignees** 118 > PullRequest DeleteV5ReposOwnerRepoPullsNumberAssignees(ctx, owner, repo, number, assignees, optional) 119 取消用户审查 Pull Request 120 121 取消用户审查 Pull Request 122 123 ### Required Parameters 124 125 Name | Type | Description | Notes 126 ------------- | ------------- | ------------- | ------------- 127 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 128 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 129 **repo** | **string**| 仓库路径(path) | 130 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 131 **assignees** | **string**| 用户的个人空间地址, 以 , 分隔 | 132 **optional** | ***DeleteV5ReposOwnerRepoPullsNumberAssigneesOpts** | optional parameters | nil if no parameters 133 134 ### Optional Parameters 135 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoPullsNumberAssigneesOpts struct 136 137 Name | Type | Description | Notes 138 ------------- | ------------- | ------------- | ------------- 139 140 141 142 143 **accessToken** | **optional.String**| 用户授权码 | 144 145 ### Return type 146 147 [**PullRequest**](PullRequest.md) 148 149 ### Authorization 150 151 No authorization required 152 153 ### HTTP request headers 154 155 - **Content-Type**: application/json, multipart/form-data 156 - **Accept**: application/json 157 158 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 159 160 # **DeleteV5ReposOwnerRepoPullsNumberTesters** 161 > PullRequest DeleteV5ReposOwnerRepoPullsNumberTesters(ctx, owner, repo, number, testers, optional) 162 取消用户测试 Pull Request 163 164 取消用户测试 Pull Request 165 166 ### Required Parameters 167 168 Name | Type | Description | Notes 169 ------------- | ------------- | ------------- | ------------- 170 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 171 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 172 **repo** | **string**| 仓库路径(path) | 173 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 174 **testers** | **string**| 用户的个人空间地址, 以 , 分隔 | 175 **optional** | ***DeleteV5ReposOwnerRepoPullsNumberTestersOpts** | optional parameters | nil if no parameters 176 177 ### Optional Parameters 178 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoPullsNumberTestersOpts struct 179 180 Name | Type | Description | Notes 181 ------------- | ------------- | ------------- | ------------- 182 183 184 185 186 **accessToken** | **optional.String**| 用户授权码 | 187 188 ### Return type 189 190 [**PullRequest**](PullRequest.md) 191 192 ### Authorization 193 194 No authorization required 195 196 ### HTTP request headers 197 198 - **Content-Type**: application/json, multipart/form-data 199 - **Accept**: application/json 200 201 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 202 203 # **GetV5ReposOwnerRepoPulls** 204 > []PullRequest GetV5ReposOwnerRepoPulls(ctx, owner, repo, optional) 205 获取Pull Request列表 206 207 获取Pull Request列表 208 209 ### Required Parameters 210 211 Name | Type | Description | Notes 212 ------------- | ------------- | ------------- | ------------- 213 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 214 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 215 **repo** | **string**| 仓库路径(path) | 216 **optional** | ***GetV5ReposOwnerRepoPullsOpts** | optional parameters | nil if no parameters 217 218 ### Optional Parameters 219 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsOpts struct 220 221 Name | Type | Description | Notes 222 ------------- | ------------- | ------------- | ------------- 223 224 225 **accessToken** | **optional.String**| 用户授权码 | 226 **state** | **optional.String**| 可选。Pull Request 状态 | [default to open] 227 **head** | **optional.String**| 可选。Pull Request 提交的源分支。格式:branch 或者:username:branch | 228 **base** | **optional.String**| 可选。Pull Request 提交目标分支的名称。 | 229 **sort** | **optional.String**| 可选。排序字段,默认按创建时间 | [default to created] 230 **direction** | **optional.String**| 可选。升序/降序 | [default to desc] 231 **milestoneNumber** | **optional.Int32**| 可选。里程碑序号(id) | 232 **labels** | **optional.String**| 用逗号分开的标签。如: bug,performance | 233 **page** | **optional.Int32**| 当前的页码 | [default to 1] 234 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 235 236 ### Return type 237 238 [**[]PullRequest**](PullRequest.md) 239 240 ### Authorization 241 242 No authorization required 243 244 ### HTTP request headers 245 246 - **Content-Type**: application/json, multipart/form-data 247 - **Accept**: application/json 248 249 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 250 251 # **GetV5ReposOwnerRepoPullsComments** 252 > []PullRequestComments GetV5ReposOwnerRepoPullsComments(ctx, owner, repo, optional) 253 获取该仓库下的所有Pull Request评论 254 255 获取该仓库下的所有Pull Request评论 256 257 ### Required Parameters 258 259 Name | Type | Description | Notes 260 ------------- | ------------- | ------------- | ------------- 261 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 262 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 263 **repo** | **string**| 仓库路径(path) | 264 **optional** | ***GetV5ReposOwnerRepoPullsCommentsOpts** | optional parameters | nil if no parameters 265 266 ### Optional Parameters 267 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsCommentsOpts struct 268 269 Name | Type | Description | Notes 270 ------------- | ------------- | ------------- | ------------- 271 272 273 **accessToken** | **optional.String**| 用户授权码 | 274 **sort** | **optional.String**| 可选。按创建时间/更新时间排序 | [default to created] 275 **direction** | **optional.String**| 可选。升序/降序 | [default to desc] 276 **since** | **optional.String**| 起始的更新时间,要求时间格式为 ISO 8601 | 277 **page** | **optional.Int32**| 当前的页码 | [default to 1] 278 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 279 280 ### Return type 281 282 [**[]PullRequestComments**](PullRequestComments.md) 283 284 ### Authorization 285 286 No authorization required 287 288 ### HTTP request headers 289 290 - **Content-Type**: application/json, multipart/form-data 291 - **Accept**: application/json 292 293 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 294 295 # **GetV5ReposOwnerRepoPullsCommentsId** 296 > PullRequestComments GetV5ReposOwnerRepoPullsCommentsId(ctx, owner, repo, id, optional) 297 获取Pull Request的某个评论 298 299 获取Pull Request的某个评论 300 301 ### Required Parameters 302 303 Name | Type | Description | Notes 304 ------------- | ------------- | ------------- | ------------- 305 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 306 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 307 **repo** | **string**| 仓库路径(path) | 308 **id** | **int32**| | 309 **optional** | ***GetV5ReposOwnerRepoPullsCommentsIdOpts** | optional parameters | nil if no parameters 310 311 ### Optional Parameters 312 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsCommentsIdOpts struct 313 314 Name | Type | Description | Notes 315 ------------- | ------------- | ------------- | ------------- 316 317 318 319 **accessToken** | **optional.String**| 用户授权码 | 320 321 ### Return type 322 323 [**PullRequestComments**](PullRequestComments.md) 324 325 ### Authorization 326 327 No authorization required 328 329 ### HTTP request headers 330 331 - **Content-Type**: application/json, multipart/form-data 332 - **Accept**: application/json 333 334 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 335 336 # **GetV5ReposOwnerRepoPullsNumber** 337 > PullRequest GetV5ReposOwnerRepoPullsNumber(ctx, owner, repo, number, optional) 338 获取单个Pull Request 339 340 获取单个Pull Request 341 342 ### Required Parameters 343 344 Name | Type | Description | Notes 345 ------------- | ------------- | ------------- | ------------- 346 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 347 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 348 **repo** | **string**| 仓库路径(path) | 349 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 350 **optional** | ***GetV5ReposOwnerRepoPullsNumberOpts** | optional parameters | nil if no parameters 351 352 ### Optional Parameters 353 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberOpts struct 354 355 Name | Type | Description | Notes 356 ------------- | ------------- | ------------- | ------------- 357 358 359 360 **accessToken** | **optional.String**| 用户授权码 | 361 362 ### Return type 363 364 [**PullRequest**](PullRequest.md) 365 366 ### Authorization 367 368 No authorization required 369 370 ### HTTP request headers 371 372 - **Content-Type**: application/json, multipart/form-data 373 - **Accept**: application/json 374 375 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 376 377 # **GetV5ReposOwnerRepoPullsNumberComments** 378 > []PullRequestComments GetV5ReposOwnerRepoPullsNumberComments(ctx, owner, repo, number, optional) 379 获取某个Pull Request的所有评论 380 381 获取某个Pull Request的所有评论 382 383 ### Required Parameters 384 385 Name | Type | Description | Notes 386 ------------- | ------------- | ------------- | ------------- 387 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 388 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 389 **repo** | **string**| 仓库路径(path) | 390 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 391 **optional** | ***GetV5ReposOwnerRepoPullsNumberCommentsOpts** | optional parameters | nil if no parameters 392 393 ### Optional Parameters 394 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberCommentsOpts struct 395 396 Name | Type | Description | Notes 397 ------------- | ------------- | ------------- | ------------- 398 399 400 401 **accessToken** | **optional.String**| 用户授权码 | 402 **page** | **optional.Int32**| 当前的页码 | [default to 1] 403 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 404 405 ### Return type 406 407 [**[]PullRequestComments**](PullRequestComments.md) 408 409 ### Authorization 410 411 No authorization required 412 413 ### HTTP request headers 414 415 - **Content-Type**: application/json, multipart/form-data 416 - **Accept**: application/json 417 418 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 419 420 # **GetV5ReposOwnerRepoPullsNumberCommits** 421 > []PullRequestCommits GetV5ReposOwnerRepoPullsNumberCommits(ctx, owner, repo, number, optional) 422 获取某Pull Request的所有Commit信息。最多显示250条Commit 423 424 获取某Pull Request的所有Commit信息。最多显示250条Commit 425 426 ### Required Parameters 427 428 Name | Type | Description | Notes 429 ------------- | ------------- | ------------- | ------------- 430 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 431 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 432 **repo** | **string**| 仓库路径(path) | 433 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 434 **optional** | ***GetV5ReposOwnerRepoPullsNumberCommitsOpts** | optional parameters | nil if no parameters 435 436 ### Optional Parameters 437 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberCommitsOpts struct 438 439 Name | Type | Description | Notes 440 ------------- | ------------- | ------------- | ------------- 441 442 443 444 **accessToken** | **optional.String**| 用户授权码 | 445 446 ### Return type 447 448 [**[]PullRequestCommits**](PullRequestCommits.md) 449 450 ### Authorization 451 452 No authorization required 453 454 ### HTTP request headers 455 456 - **Content-Type**: application/json, multipart/form-data 457 - **Accept**: application/json 458 459 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 460 461 # **GetV5ReposOwnerRepoPullsNumberFiles** 462 > []PullRequestFiles GetV5ReposOwnerRepoPullsNumberFiles(ctx, owner, repo, number, optional) 463 Pull Request Commit文件列表。最多显示300条diff 464 465 Pull Request Commit文件列表。最多显示300条diff 466 467 ### Required Parameters 468 469 Name | Type | Description | Notes 470 ------------- | ------------- | ------------- | ------------- 471 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 472 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 473 **repo** | **string**| 仓库路径(path) | 474 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 475 **optional** | ***GetV5ReposOwnerRepoPullsNumberFilesOpts** | optional parameters | nil if no parameters 476 477 ### Optional Parameters 478 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberFilesOpts struct 479 480 Name | Type | Description | Notes 481 ------------- | ------------- | ------------- | ------------- 482 483 484 485 **accessToken** | **optional.String**| 用户授权码 | 486 487 ### Return type 488 489 [**[]PullRequestFiles**](PullRequestFiles.md) 490 491 ### Authorization 492 493 No authorization required 494 495 ### HTTP request headers 496 497 - **Content-Type**: application/json, multipart/form-data 498 - **Accept**: application/json 499 500 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 501 502 # **GetV5ReposOwnerRepoPullsNumberIssues** 503 > []Issue GetV5ReposOwnerRepoPullsNumberIssues(ctx, owner, repo, number, optional) 504 获取 Pull Request 关联的 issues 505 506 获取 Pull Request 关联的 issues 507 508 ### Required Parameters 509 510 Name | Type | Description | Notes 511 ------------- | ------------- | ------------- | ------------- 512 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 513 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 514 **repo** | **string**| 仓库路径(path) | 515 **number** | **int32**| | 516 **optional** | ***GetV5ReposOwnerRepoPullsNumberIssuesOpts** | optional parameters | nil if no parameters 517 518 ### Optional Parameters 519 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberIssuesOpts struct 520 521 Name | Type | Description | Notes 522 ------------- | ------------- | ------------- | ------------- 523 524 525 526 **accessToken** | **optional.String**| 用户授权码 | 527 **page** | **optional.Int32**| 当前的页码 | [default to 1] 528 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 529 530 ### Return type 531 532 [**[]Issue**](Issue.md) 533 534 ### Authorization 535 536 No authorization required 537 538 ### HTTP request headers 539 540 - **Content-Type**: Not defined 541 - **Accept**: application/json 542 543 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 544 545 # **GetV5ReposOwnerRepoPullsNumberLabels** 546 > []Label GetV5ReposOwnerRepoPullsNumberLabels(ctx, owner, repo, number, optional) 547 获取某个 Pull Request 的所有标签 548 549 获取某个 Pull Request 的所有标签 550 551 ### Required Parameters 552 553 Name | Type | Description | Notes 554 ------------- | ------------- | ------------- | ------------- 555 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 556 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 557 **repo** | **string**| 仓库路径(path) | 558 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 559 **optional** | ***GetV5ReposOwnerRepoPullsNumberLabelsOpts** | optional parameters | nil if no parameters 560 561 ### Optional Parameters 562 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberLabelsOpts struct 563 564 Name | Type | Description | Notes 565 ------------- | ------------- | ------------- | ------------- 566 567 568 569 **accessToken** | **optional.String**| 用户授权码 | 570 **page** | **optional.Int32**| 当前的页码 | [default to 1] 571 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 572 573 ### Return type 574 575 [**[]Label**](Label.md) 576 577 ### Authorization 578 579 No authorization required 580 581 ### HTTP request headers 582 583 - **Content-Type**: application/json, multipart/form-data 584 - **Accept**: application/json 585 586 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 587 588 # **GetV5ReposOwnerRepoPullsNumberMerge** 589 > GetV5ReposOwnerRepoPullsNumberMerge(ctx, owner, repo, number, optional) 590 判断Pull Request是否已经合并 591 592 判断Pull Request是否已经合并 593 594 ### Required Parameters 595 596 Name | Type | Description | Notes 597 ------------- | ------------- | ------------- | ------------- 598 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 599 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 600 **repo** | **string**| 仓库路径(path) | 601 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 602 **optional** | ***GetV5ReposOwnerRepoPullsNumberMergeOpts** | optional parameters | nil if no parameters 603 604 ### Optional Parameters 605 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberMergeOpts struct 606 607 Name | Type | Description | Notes 608 ------------- | ------------- | ------------- | ------------- 609 610 611 612 **accessToken** | **optional.String**| 用户授权码 | 613 614 ### Return type 615 616 (empty response body) 617 618 ### Authorization 619 620 No authorization required 621 622 ### HTTP request headers 623 624 - **Content-Type**: application/json, multipart/form-data 625 - **Accept**: application/json 626 627 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 628 629 # **GetV5ReposOwnerRepoPullsNumberOperateLogs** 630 > []OperateLog GetV5ReposOwnerRepoPullsNumberOperateLogs(ctx, owner, repo, number, optional) 631 获取某个Pull Request的操作日志 632 633 获取某个Pull Request的操作日志 634 635 ### Required Parameters 636 637 Name | Type | Description | Notes 638 ------------- | ------------- | ------------- | ------------- 639 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 640 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 641 **repo** | **string**| 仓库路径(path) | 642 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 643 **optional** | ***GetV5ReposOwnerRepoPullsNumberOperateLogsOpts** | optional parameters | nil if no parameters 644 645 ### Optional Parameters 646 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberOperateLogsOpts struct 647 648 Name | Type | Description | Notes 649 ------------- | ------------- | ------------- | ------------- 650 651 652 653 **accessToken** | **optional.String**| 用户授权码 | 654 **sort** | **optional.String**| 按递增(asc)或递减(desc)排序,默认:递减 | [default to desc] 655 656 ### Return type 657 658 [**[]OperateLog**](OperateLog.md) 659 660 ### Authorization 661 662 No authorization required 663 664 ### HTTP request headers 665 666 - **Content-Type**: application/json, multipart/form-data 667 - **Accept**: application/json 668 669 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 670 671 # **PatchV5ReposOwnerRepoPullsCommentsId** 672 > PullRequestComments PatchV5ReposOwnerRepoPullsCommentsId(ctx, owner, repo, id, body) 673 编辑评论 674 675 编辑评论 676 677 ### Required Parameters 678 679 Name | Type | Description | Notes 680 ------------- | ------------- | ------------- | ------------- 681 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 682 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 683 **repo** | **string**| 仓库路径(path) | 684 **id** | **int32**| 评论的ID | 685 **body** | [**PullRequestCommentPatchParam**](PullRequestCommentPatchParam.md)| 必填。评论内容 | 686 687 ### Return type 688 689 [**PullRequestComments**](PullRequestComments.md) 690 691 ### Authorization 692 693 No authorization required 694 695 ### HTTP request headers 696 697 - **Content-Type**: application/json, multipart/form-data 698 - **Accept**: application/json 699 700 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 701 702 # **PatchV5ReposOwnerRepoPullsNumber** 703 > PullRequest PatchV5ReposOwnerRepoPullsNumber(ctx, owner, repo, number, body) 704 更新Pull Request信息 705 706 更新Pull Request信息 707 708 ### Required Parameters 709 710 Name | Type | Description | Notes 711 ------------- | ------------- | ------------- | ------------- 712 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 713 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 714 **repo** | **string**| 仓库路径(path) | 715 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 716 **body** | [**PullRequestUpdateParam**](PullRequestUpdateParam.md)| 可选。Pull Request 内容 | 717 718 ### Return type 719 720 [**PullRequest**](PullRequest.md) 721 722 ### Authorization 723 724 No authorization required 725 726 ### HTTP request headers 727 728 - **Content-Type**: application/json, multipart/form-data 729 - **Accept**: application/json 730 731 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 732 733 # **PostV5ReposOwnerRepoPulls** 734 > PullRequest PostV5ReposOwnerRepoPulls(ctx, owner, repo, body) 735 创建Pull Request 736 737 创建Pull Request 738 739 ### Required Parameters 740 741 Name | Type | Description | Notes 742 ------------- | ------------- | ------------- | ------------- 743 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 744 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 745 **repo** | **string**| 仓库路径(path) | 746 **body** | [**CreatePullRequestParam**](CreatePullRequestParam.md)| pr的信息 | 747 748 ### Return type 749 750 [**PullRequest**](PullRequest.md) 751 752 ### Authorization 753 754 No authorization required 755 756 ### HTTP request headers 757 758 - **Content-Type**: application/json, multipart/form-data 759 - **Accept**: application/json 760 761 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 762 763 # **PostV5ReposOwnerRepoPullsNumberAssignees** 764 > PullRequest PostV5ReposOwnerRepoPullsNumberAssignees(ctx, owner, repo, number, body) 765 指派用户审查 Pull Request 766 767 指派用户审查 Pull Request 768 769 ### Required Parameters 770 771 Name | Type | Description | Notes 772 ------------- | ------------- | ------------- | ------------- 773 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 774 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 775 **repo** | **string**| 仓库路径(path) | 776 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 777 **body** | [**PullRequestAssigneePostParam**](PullRequestAssigneePostParam.md)| 必选,标签的内容 | 778 779 ### Return type 780 781 [**PullRequest**](PullRequest.md) 782 783 ### Authorization 784 785 No authorization required 786 787 ### HTTP request headers 788 789 - **Content-Type**: application/json, multipart/form-data 790 - **Accept**: application/json 791 792 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 793 794 # **PostV5ReposOwnerRepoPullsNumberComments** 795 > PullRequestComments PostV5ReposOwnerRepoPullsNumberComments(ctx, owner, repo, number, body) 796 提交Pull Request评论 797 798 提交Pull Request评论 799 800 ### Required Parameters 801 802 Name | Type | Description | Notes 803 ------------- | ------------- | ------------- | ------------- 804 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 805 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 806 **repo** | **string**| 仓库路径(path) | 807 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 808 **body** | [**PullRequestCommentPostParam**](PullRequestCommentPostParam.md)| 评论内容 | 809 810 ### Return type 811 812 [**PullRequestComments**](PullRequestComments.md) 813 814 ### Authorization 815 816 No authorization required 817 818 ### HTTP request headers 819 820 - **Content-Type**: application/json, multipart/form-data 821 - **Accept**: application/json 822 823 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 824 825 # **PostV5ReposOwnerRepoPullsNumberLabels** 826 > Label PostV5ReposOwnerRepoPullsNumberLabels(ctx, owner, repo, number, body) 827 创建 Pull Request 标签 828 829 创建 Pull Request 标签 830 831 ### Required Parameters 832 833 Name | Type | Description | Notes 834 ------------- | ------------- | ------------- | ------------- 835 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 836 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 837 **repo** | **string**| 仓库路径(path) | 838 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 839 **body** | [**PullRequestLabelPostParam**](PullRequestLabelPostParam.md)| 必选,标签的内容 | 840 841 ### Return type 842 843 [**Label**](Label.md) 844 845 ### Authorization 846 847 No authorization required 848 849 ### HTTP request headers 850 851 - **Content-Type**: application/json, multipart/form-data 852 - **Accept**: application/json 853 854 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 855 856 # **PostV5ReposOwnerRepoPullsNumberTesters** 857 > PullRequest PostV5ReposOwnerRepoPullsNumberTesters(ctx, owner, repo, number, testers, optional) 858 指派用户测试 Pull Request 859 860 指派用户测试 Pull Request 861 862 ### Required Parameters 863 864 Name | Type | Description | Notes 865 ------------- | ------------- | ------------- | ------------- 866 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 867 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 868 **repo** | **string**| 仓库路径(path) | 869 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 870 **testers** | **string**| 用户的个人空间地址, 以 , 分隔 | 871 **optional** | ***PostV5ReposOwnerRepoPullsNumberTestersOpts** | optional parameters | nil if no parameters 872 873 ### Optional Parameters 874 Optional parameters are passed through a pointer to a PostV5ReposOwnerRepoPullsNumberTestersOpts struct 875 876 Name | Type | Description | Notes 877 ------------- | ------------- | ------------- | ------------- 878 879 880 881 882 **accessToken** | **optional.String**| 用户授权码 | 883 884 ### Return type 885 886 [**PullRequest**](PullRequest.md) 887 888 ### Authorization 889 890 No authorization required 891 892 ### HTTP request headers 893 894 - **Content-Type**: application/json, multipart/form-data 895 - **Accept**: application/json 896 897 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 898 899 # **PutV5ReposOwnerRepoPullsNumberLabels** 900 > []Label PutV5ReposOwnerRepoPullsNumberLabels(ctx, owner, repo, number, body) 901 替换Pull Request 所有标签 902 903 替换Pull Request 所有标签 需要在请求的body里填上数组,元素为标签的名字。如: [\"performance\", \"bug\"] 904 905 ### Required Parameters 906 907 Name | Type | Description | Notes 908 ------------- | ------------- | ------------- | ------------- 909 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 910 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 911 **repo** | **string**| 仓库路径(path) | 912 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 913 **body** | [**PullRequestLabelPostParam**](PullRequestLabelPostParam.md)| 必选,标签的内容 | 914 915 ### Return type 916 917 [**[]Label**](Label.md) 918 919 ### Authorization 920 921 No authorization required 922 923 ### HTTP request headers 924 925 - **Content-Type**: application/json, multipart/form-data 926 - **Accept**: application/json 927 928 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 929 930 # **PutV5ReposOwnerRepoPullsNumberMerge** 931 > PutV5ReposOwnerRepoPullsNumberMerge(ctx, owner, repo, number, body) 932 合并Pull Request 933 934 合并Pull Request 935 936 ### Required Parameters 937 938 Name | Type | Description | Notes 939 ------------- | ------------- | ------------- | ------------- 940 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 941 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 942 **repo** | **string**| 仓库路径(path) | 943 **number** | **int32**| 第几个PR,即本仓库PR的序数 | 944 **body** | [**PullRequestMergePutParam**](PullRequestMergePutParam.md)| PullRequest合入参数 | 945 946 ### Return type 947 948 (empty response body) 949 950 ### Authorization 951 952 No authorization required 953 954 ### HTTP request headers 955 956 - **Content-Type**: application/json, multipart/form-data 957 - **Accept**: application/json 958 959 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 960