All URIs are relative to https://gitee.com/api
Method | HTTP request | Description |
---|---|---|
DeleteV5ReposOwnerRepoPullsCommentsId | Delete /v5/repos/{owner}/{repo}/pulls/comments/{id} | 删除评论 |
DeleteV5ReposOwnerRepoPullsLabel | Delete /v5/repos/{owner}/{repo}/pulls/{number}/labels/{name} | 删除 Pull Request 标签 |
DeleteV5ReposOwnerRepoPullsNumberAssignees | Delete /v5/repos/{owner}/{repo}/pulls/{number}/assignees | 取消用户审查 Pull Request |
DeleteV5ReposOwnerRepoPullsNumberTesters | Delete /v5/repos/{owner}/{repo}/pulls/{number}/testers | 取消用户测试 Pull Request |
GetV5ReposOwnerRepoPulls | Get /v5/repos/{owner}/{repo}/pulls | 获取Pull Request列表 |
GetV5ReposOwnerRepoPullsComments | Get /v5/repos/{owner}/{repo}/pulls/comments | 获取该仓库下的所有Pull Request评论 |
GetV5ReposOwnerRepoPullsCommentsId | Get /v5/repos/{owner}/{repo}/pulls/comments/{id} | 获取Pull Request的某个评论 |
GetV5ReposOwnerRepoPullsNumber | Get /v5/repos/{owner}/{repo}/pulls/{number} | 获取单个Pull Request |
GetV5ReposOwnerRepoPullsNumberComments | Get /v5/repos/{owner}/{repo}/pulls/{number}/comments | 获取某个Pull Request的所有评论 |
GetV5ReposOwnerRepoPullsNumberCommits | Get /v5/repos/{owner}/{repo}/pulls/{number}/commits | 获取某Pull Request的所有Commit信息。最多显示250条Commit |
GetV5ReposOwnerRepoPullsNumberFiles | Get /v5/repos/{owner}/{repo}/pulls/{number}/files | Pull Request Commit文件列表。最多显示300条diff |
GetV5ReposOwnerRepoPullsNumberIssues | Get /v5/repos/{owner}/{repo}/pulls/{number}/issues | 获取 Pull Request 关联的 issues |
GetV5ReposOwnerRepoPullsNumberLabels | Get /v5/repos/{owner}/{repo}/pulls/{number}/labels | 获取某个 Pull Request 的所有标签 |
GetV5ReposOwnerRepoPullsNumberMerge | Get /v5/repos/{owner}/{repo}/pulls/{number}/merge | 判断Pull Request是否已经合并 |
GetV5ReposOwnerRepoPullsNumberOperateLogs | Get /v5/repos/{owner}/{repo}/pulls/{number}/operate_logs | 获取某个Pull Request的操作日志 |
PatchV5ReposOwnerRepoPullsCommentsId | Patch /v5/repos/{owner}/{repo}/pulls/comments/{id} | 编辑评论 |
PatchV5ReposOwnerRepoPullsNumber | Patch /v5/repos/{owner}/{repo}/pulls/{number} | 更新Pull Request信息 |
PostV5ReposOwnerRepoPulls | Post /v5/repos/{owner}/{repo}/pulls | 创建Pull Request |
PostV5ReposOwnerRepoPullsNumberAssignees | Post /v5/repos/{owner}/{repo}/pulls/{number}/assignees | 指派用户审查 Pull Request |
PostV5ReposOwnerRepoPullsNumberComments | Post /v5/repos/{owner}/{repo}/pulls/{number}/comments | 提交Pull Request评论 |
PostV5ReposOwnerRepoPullsNumberLabels | Post /v5/repos/{owner}/{repo}/pulls/{number}/labels | 创建 Pull Request 标签 |
PostV5ReposOwnerRepoPullsNumberTesters | Post /v5/repos/{owner}/{repo}/pulls/{number}/testers | 指派用户测试 Pull Request |
PutV5ReposOwnerRepoPullsNumberLabels | Put /v5/repos/{owner}/{repo}/pulls/{number}/labels | 替换Pull Request 所有标签 |
PutV5ReposOwnerRepoPullsNumberMerge | Put /v5/repos/{owner}/{repo}/pulls/{number}/merge | 合并Pull Request |
DeleteV5ReposOwnerRepoPullsCommentsId(ctx, owner, repo, id, optional) 删除评论
删除评论
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
id | int32 | 评论的ID | |
optional | *DeleteV5ReposOwnerRepoPullsCommentsIdOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoPullsCommentsIdOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
(empty response body)
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteV5ReposOwnerRepoPullsLabel(ctx, owner, repo, number, name, optional) 删除 Pull Request 标签
删除 Pull Request 标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
name | string | 标签名称 | |
optional | *DeleteV5ReposOwnerRepoPullsLabelOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoPullsLabelOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
(empty response body)
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PullRequest DeleteV5ReposOwnerRepoPullsNumberAssignees(ctx, owner, repo, number, assignees, optional) 取消用户审查 Pull Request
取消用户审查 Pull Request
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
assignees | string | 用户的个人空间地址, 以 , 分隔 | |
optional | *DeleteV5ReposOwnerRepoPullsNumberAssigneesOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoPullsNumberAssigneesOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PullRequest DeleteV5ReposOwnerRepoPullsNumberTesters(ctx, owner, repo, number, testers, optional) 取消用户测试 Pull Request
取消用户测试 Pull Request
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
testers | string | 用户的个人空间地址, 以 , 分隔 | |
optional | *DeleteV5ReposOwnerRepoPullsNumberTestersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoPullsNumberTestersOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]PullRequest GetV5ReposOwnerRepoPulls(ctx, owner, repo, optional) 获取Pull Request列表
获取Pull Request列表
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
optional | *GetV5ReposOwnerRepoPullsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 | state | optional.String| 可选。Pull Request 状态 | [default to open] head | optional.String| 可选。Pull Request 提交的源分支。格式:branch 或者:username:branch | base | optional.String| 可选。Pull Request 提交目标分支的名称。 | sort | optional.String| 可选。排序字段,默认按创建时间 | [default to created] direction | optional.String| 可选。升序/降序 | [default to desc] milestoneNumber | optional.Int32| 可选。里程碑序号(id) | labels | optional.String| 用逗号分开的标签。如: bug,performance | page | optional.Int32| 当前的页码 | [default to 1] perPage | optional.Int32| 每页的数量,最大为 100 | [default to 20]
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]PullRequestComments GetV5ReposOwnerRepoPullsComments(ctx, owner, repo, optional) 获取该仓库下的所有Pull Request评论
获取该仓库下的所有Pull Request评论
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
optional | *GetV5ReposOwnerRepoPullsCommentsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsCommentsOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 | sort | optional.String| 可选。按创建时间/更新时间排序 | [default to created] direction | optional.String| 可选。升序/降序 | [default to desc] since | optional.String| 起始的更新时间,要求时间格式为 ISO 8601 | page | optional.Int32| 当前的页码 | [default to 1] perPage | optional.Int32| 每页的数量,最大为 100 | [default to 20]
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PullRequestComments GetV5ReposOwnerRepoPullsCommentsId(ctx, owner, repo, id, optional) 获取Pull Request的某个评论
获取Pull Request的某个评论
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
id | int32 | ||
optional | *GetV5ReposOwnerRepoPullsCommentsIdOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsCommentsIdOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PullRequest GetV5ReposOwnerRepoPullsNumber(ctx, owner, repo, number, optional) 获取单个Pull Request
获取单个Pull Request
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
optional | *GetV5ReposOwnerRepoPullsNumberOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]PullRequestComments GetV5ReposOwnerRepoPullsNumberComments(ctx, owner, repo, number, optional) 获取某个Pull Request的所有评论
获取某个Pull Request的所有评论
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
optional | *GetV5ReposOwnerRepoPullsNumberCommentsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberCommentsOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 | page | optional.Int32| 当前的页码 | [default to 1] perPage | optional.Int32| 每页的数量,最大为 100 | [default to 20]
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]PullRequestCommits GetV5ReposOwnerRepoPullsNumberCommits(ctx, owner, repo, number, optional) 获取某Pull Request的所有Commit信息。最多显示250条Commit
获取某Pull Request的所有Commit信息。最多显示250条Commit
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
optional | *GetV5ReposOwnerRepoPullsNumberCommitsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberCommitsOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]PullRequestFiles GetV5ReposOwnerRepoPullsNumberFiles(ctx, owner, repo, number, optional) Pull Request Commit文件列表。最多显示300条diff
Pull Request Commit文件列表。最多显示300条diff
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
optional | *GetV5ReposOwnerRepoPullsNumberFilesOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberFilesOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Issue GetV5ReposOwnerRepoPullsNumberIssues(ctx, owner, repo, number, optional) 获取 Pull Request 关联的 issues
获取 Pull Request 关联的 issues
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | ||
optional | *GetV5ReposOwnerRepoPullsNumberIssuesOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberIssuesOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 | page | optional.Int32| 当前的页码 | [default to 1] perPage | optional.Int32| 每页的数量,最大为 100 | [default to 20]
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Label GetV5ReposOwnerRepoPullsNumberLabels(ctx, owner, repo, number, optional) 获取某个 Pull Request 的所有标签
获取某个 Pull Request 的所有标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
optional | *GetV5ReposOwnerRepoPullsNumberLabelsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberLabelsOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 | page | optional.Int32| 当前的页码 | [default to 1] perPage | optional.Int32| 每页的数量,最大为 100 | [default to 20]
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetV5ReposOwnerRepoPullsNumberMerge(ctx, owner, repo, number, optional) 判断Pull Request是否已经合并
判断Pull Request是否已经合并
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
optional | *GetV5ReposOwnerRepoPullsNumberMergeOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberMergeOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
(empty response body)
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]OperateLog GetV5ReposOwnerRepoPullsNumberOperateLogs(ctx, owner, repo, number, optional) 获取某个Pull Request的操作日志
获取某个Pull Request的操作日志
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
optional | *GetV5ReposOwnerRepoPullsNumberOperateLogsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPullsNumberOperateLogsOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 | sort | optional.String| 按递增(asc)或递减(desc)排序,默认:递减 | [default to desc]
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PullRequestComments PatchV5ReposOwnerRepoPullsCommentsId(ctx, owner, repo, id, body) 编辑评论
编辑评论
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
id | int32 | 评论的ID | |
body | PullRequestCommentPatchParam | 必填。评论内容 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PullRequest PatchV5ReposOwnerRepoPullsNumber(ctx, owner, repo, number, body) 更新Pull Request信息
更新Pull Request信息
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
body | PullRequestUpdateParam | 可选。Pull Request 内容 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PullRequest PostV5ReposOwnerRepoPulls(ctx, owner, repo, body) 创建Pull Request
创建Pull Request
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
body | CreatePullRequestParam | pr的信息 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PullRequest PostV5ReposOwnerRepoPullsNumberAssignees(ctx, owner, repo, number, body) 指派用户审查 Pull Request
指派用户审查 Pull Request
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
body | PullRequestAssigneePostParam | 必选,标签的内容 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PullRequestComments PostV5ReposOwnerRepoPullsNumberComments(ctx, owner, repo, number, body) 提交Pull Request评论
提交Pull Request评论
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
body | PullRequestCommentPostParam | 评论内容 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Label PostV5ReposOwnerRepoPullsNumberLabels(ctx, owner, repo, number, body) 创建 Pull Request 标签
创建 Pull Request 标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
body | PullRequestLabelPostParam | 必选,标签的内容 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PullRequest PostV5ReposOwnerRepoPullsNumberTesters(ctx, owner, repo, number, testers, optional) 指派用户测试 Pull Request
指派用户测试 Pull Request
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
testers | string | 用户的个人空间地址, 以 , 分隔 | |
optional | *PostV5ReposOwnerRepoPullsNumberTestersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a PostV5ReposOwnerRepoPullsNumberTestersOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Label PutV5ReposOwnerRepoPullsNumberLabels(ctx, owner, repo, number, body) 替换Pull Request 所有标签
替换Pull Request 所有标签 需要在请求的body里填上数组,元素为标签的名字。如: ["performance", "bug"]
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
body | PullRequestLabelPostParam | 必选,标签的内容 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PutV5ReposOwnerRepoPullsNumberMerge(ctx, owner, repo, number, body) 合并Pull Request
合并Pull Request
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | int32 | 第几个PR,即本仓库PR的序数 | |
body | PullRequestMergePutParam | PullRequest合入参数 |
(empty response body)
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]