All URIs are relative to https://gitee.com/api/v5
Method | HTTP request | Description |
---|---|---|
deleteReposOwnerRepoPullsCommentsId | DELETE /repos/{owner}/{repo}/pulls/comments/{id} | 删除评论 |
deleteReposOwnerRepoPullsNumberAssignees | DELETE /repos/{owner}/{repo}/pulls/{number}/assignees | 取消用户审查 Pull Request |
deleteReposOwnerRepoPullsNumberLabelsName | DELETE /repos/{owner}/{repo}/pulls/{number}/labels/{name} | 删除 Pull Request 标签 |
deleteReposOwnerRepoPullsNumberTesters | DELETE /repos/{owner}/{repo}/pulls/{number}/testers | 取消用户测试 Pull Request |
getReposOwnerRepoPulls | GET /repos/{owner}/{repo}/pulls | 获取Pull Request列表 |
getReposOwnerRepoPullsCommentsId | GET /repos/{owner}/{repo}/pulls/comments/{id} | 获取Pull Request的某个评论 |
getReposOwnerRepoPullsNumber | GET /repos/{owner}/{repo}/pulls/{number} | 获取单个Pull Request |
getReposOwnerRepoPullsNumberComments | GET /repos/{owner}/{repo}/pulls/{number}/comments | 获取某个Pull Request的所有评论 |
getReposOwnerRepoPullsNumberCommits | GET /repos/{owner}/{repo}/pulls/{number}/commits | 获取某Pull Request的所有Commit信息。最多显示250条Commit |
getReposOwnerRepoPullsNumberFiles | GET /repos/{owner}/{repo}/pulls/{number}/files | Pull Request Commit文件列表。最多显示300条diff |
getReposOwnerRepoPullsNumberIssues | GET /repos/{owner}/{repo}/pulls/{number}/issues | 获取 Pull Request 关联的 issues |
getReposOwnerRepoPullsNumberLabels | GET /repos/{owner}/{repo}/pulls/{number}/labels | 获取某个 Pull Request 的所有标签 |
getReposOwnerRepoPullsNumberMerge | GET /repos/{owner}/{repo}/pulls/{number}/merge | 判断Pull Request是否已经合并 |
getReposOwnerRepoPullsNumberOperateLogs | GET /repos/{owner}/{repo}/pulls/{number}/operate_logs | 获取某个Pull Request的操作日志 |
patchReposOwnerRepoPullsCommentsId | PATCH /repos/{owner}/{repo}/pulls/comments/{id} | 编辑评论 |
patchReposOwnerRepoPullsNumber | PATCH /repos/{owner}/{repo}/pulls/{number} | 更新Pull Request信息 |
patchReposOwnerRepoPullsNumberAssignees | PATCH /repos/{owner}/{repo}/pulls/{number}/assignees | 重置 Pull Request 审查 的状态 |
patchReposOwnerRepoPullsNumberTesters | PATCH /repos/{owner}/{repo}/pulls/{number}/testers | 重置 Pull Request 测试 的状态 |
postReposOwnerRepoPulls | POST /repos/{owner}/{repo}/pulls | 创建Pull Request |
postReposOwnerRepoPullsNumberAssignees | POST /repos/{owner}/{repo}/pulls/{number}/assignees | 指派用户审查 Pull Request |
postReposOwnerRepoPullsNumberComments | POST /repos/{owner}/{repo}/pulls/{number}/comments | 提交Pull Request评论 |
postReposOwnerRepoPullsNumberLabels | POST /repos/{owner}/{repo}/pulls/{number}/labels | 创建 Pull Request 标签 |
postReposOwnerRepoPullsNumberReview | POST /repos/{owner}/{repo}/pulls/{number}/review | 处理 Pull Request 审查 |
postReposOwnerRepoPullsNumberTest | POST /repos/{owner}/{repo}/pulls/{number}/test | 处理 Pull Request 测试 |
postReposOwnerRepoPullsNumberTesters | POST /repos/{owner}/{repo}/pulls/{number}/testers | 指派用户测试 Pull Request |
putReposOwnerRepoPullsNumberLabels | PUT /repos/{owner}/{repo}/pulls/{number}/labels | 替换 Pull Request 所有标签 |
putReposOwnerRepoPullsNumberMerge | PUT /repos/{owner}/{repo}/pulls/{number}/merge | 合并Pull Request |
deleteReposOwnerRepoPullsCommentsId(owner, repo, id)
删除评论
删除评论
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer id = 56; // Integer | 评论的ID
try {
apiInstance.deleteReposOwnerRepoPullsCommentsId(owner, repo, id);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#deleteReposOwnerRepoPullsCommentsId");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
id | Integer | 评论的ID |
null (empty response body)
PullRequest deleteReposOwnerRepoPullsNumberAssignees(owner, repo, number, assignees)
取消用户审查 Pull Request
取消用户审查 Pull Request
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
String assignees = "assignees_example"; // String | 用户的个人空间地址, 以 , 分隔
try {
PullRequest result = apiInstance.deleteReposOwnerRepoPullsNumberAssignees(owner, repo, number, assignees);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#deleteReposOwnerRepoPullsNumberAssignees");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
assignees | String | 用户的个人空间地址, 以 , 分隔 |
deleteReposOwnerRepoPullsNumberLabelsName(owner, repo, number, name)
删除 Pull Request 标签
删除 Pull Request 标签
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
String name = "name_example"; // String | 标签名称(批量删除用英文逗号分隔,如: bug,feature)
try {
apiInstance.deleteReposOwnerRepoPullsNumberLabelsName(owner, repo, number, name);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#deleteReposOwnerRepoPullsNumberLabelsName");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
name | String | 标签名称(批量删除用英文逗号分隔,如: bug,feature) |
null (empty response body)
PullRequest deleteReposOwnerRepoPullsNumberTesters(owner, repo, number, testers)
取消用户测试 Pull Request
取消用户测试 Pull Request
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
String testers = "testers_example"; // String | 用户的个人空间地址, 以 , 分隔
try {
PullRequest result = apiInstance.deleteReposOwnerRepoPullsNumberTesters(owner, repo, number, testers);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#deleteReposOwnerRepoPullsNumberTesters");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
testers | String | 用户的个人空间地址, 以 , 分隔 |
List<PullRequest> getReposOwnerRepoPulls(owner, repo, state, head, base, sort, since, direction, milestoneNumber, labels, author, assignee, tester, page, perPage)
获取Pull Request列表
获取Pull Request列表
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
String state = "open"; // String | 可选。Pull Request 状态
String head = "head_example"; // String | 可选。Pull Request 提交的源分支。格式:branch 或者:username:branch
String base = "base_example"; // String | 可选。Pull Request 提交目标分支的名称。
String sort = "created"; // String | 可选。排序字段,默认按创建时间
String since = "since_example"; // String | 可选。起始的更新时间,要求时间格式为 ISO 8601
String direction = "desc"; // String | 可选。升序/降序
Integer milestoneNumber = 56; // Integer | 可选。里程碑序号(id)
String labels = "labels_example"; // String | 用逗号分开的标签。如: bug,performance
String author = "author_example"; // String | 可选。PR 创建者用户名
String assignee = "assignee_example"; // String | 可选。评审者用户名
String tester = "tester_example"; // String | 可选。测试者用户名
Integer page = 1; // Integer | 当前的页码
Integer perPage = 20; // Integer | 每页的数量,最大为 100
try {
List<PullRequest> result = apiInstance.getReposOwnerRepoPulls(owner, repo, state, head, base, sort, since, direction, milestoneNumber, labels, author, assignee, tester, page, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#getReposOwnerRepoPulls");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
state | String | 可选。Pull Request 状态 | [optional] [default to open] [enum: open, closed, merged, all] |
head | String | 可选。Pull Request 提交的源分支。格式:branch 或者:username:branch | [optional] |
base | String | 可选。Pull Request 提交目标分支的名称。 | [optional] |
sort | String | 可选。排序字段,默认按创建时间 | [optional] [default to created] [enum: created, updated, popularity, long-running] |
since | String | 可选。起始的更新时间,要求时间格式为 ISO 8601 | [optional] |
direction | String | 可选。升序/降序 | [optional] [default to desc] [enum: asc, desc] |
milestoneNumber | Integer | 可选。里程碑序号(id) | [optional] |
labels | String | 用逗号分开的标签。如: bug,performance | [optional] |
author | String | 可选。PR 创建者用户名 | [optional] |
assignee | String | 可选。评审者用户名 | [optional] |
tester | String | 可选。测试者用户名 | [optional] |
page | Integer | 当前的页码 | [optional] [default to 1] |
perPage | Integer | 每页的数量,最大为 100 | [optional] [default to 20] [enum: 1, 100] |
PullRequestComments getReposOwnerRepoPullsCommentsId(owner, repo, id)
获取Pull Request的某个评论
获取Pull Request的某个评论
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer id = 56; // Integer |
try {
PullRequestComments result = apiInstance.getReposOwnerRepoPullsCommentsId(owner, repo, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#getReposOwnerRepoPullsCommentsId");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
id | Integer |
PullRequest getReposOwnerRepoPullsNumber(owner, repo, number)
获取单个Pull Request
获取单个Pull Request
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
try {
PullRequest result = apiInstance.getReposOwnerRepoPullsNumber(owner, repo, number);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#getReposOwnerRepoPullsNumber");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 |
List<PullRequestComments> getReposOwnerRepoPullsNumberComments(owner, repo, number, page, perPage, direction, commentType)
获取某个Pull Request的所有评论
获取某个Pull Request的所有评论
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
Integer page = 1; // Integer | 当前的页码
Integer perPage = 20; // Integer | 每页的数量,最大为 100
String direction = "direction_example"; // String | 可选。升序/降序
String commentType = "commentType_example"; // String | 可选。筛选评论类型。代码行评论/pr普通评论
try {
List<PullRequestComments> result = apiInstance.getReposOwnerRepoPullsNumberComments(owner, repo, number, page, perPage, direction, commentType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#getReposOwnerRepoPullsNumberComments");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
page | Integer | 当前的页码 | [optional] [default to 1] |
perPage | Integer | 每页的数量,最大为 100 | [optional] [default to 20] [enum: 1, 100] |
direction | String | 可选。升序/降序 | [optional] [enum: asc, desc] |
commentType | String | 可选。筛选评论类型。代码行评论/pr普通评论 | [optional] [enum: diff_comment, pr_comment] |
List<PullRequestCommits> getReposOwnerRepoPullsNumberCommits(owner, repo, number)
获取某Pull Request的所有Commit信息。最多显示250条Commit
获取某Pull Request的所有Commit信息。最多显示250条Commit
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
try {
List<PullRequestCommits> result = apiInstance.getReposOwnerRepoPullsNumberCommits(owner, repo, number);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#getReposOwnerRepoPullsNumberCommits");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 |
List<PullRequestFiles> getReposOwnerRepoPullsNumberFiles(owner, repo, number)
Pull Request Commit文件列表。最多显示300条diff
Pull Request Commit文件列表。最多显示300条diff
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
try {
List<PullRequestFiles> result = apiInstance.getReposOwnerRepoPullsNumberFiles(owner, repo, number);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#getReposOwnerRepoPullsNumberFiles");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 |
List<Issue> getReposOwnerRepoPullsNumberIssues(owner, repo, number, page, perPage)
获取 Pull Request 关联的 issues
获取 Pull Request 关联的 issues
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer |
Integer page = 1; // Integer | 当前的页码
Integer perPage = 20; // Integer | 每页的数量,最大为 100
try {
List<Issue> result = apiInstance.getReposOwnerRepoPullsNumberIssues(owner, repo, number, page, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#getReposOwnerRepoPullsNumberIssues");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | ||
page | Integer | 当前的页码 | [optional] [default to 1] |
perPage | Integer | 每页的数量,最大为 100 | [optional] [default to 20] [enum: 1, 100] |
List<Label> getReposOwnerRepoPullsNumberLabels(owner, repo, number, page, perPage)
获取某个 Pull Request 的所有标签
获取某个 Pull Request 的所有标签
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
Integer page = 1; // Integer | 当前的页码
Integer perPage = 20; // Integer | 每页的数量,最大为 100
try {
List<Label> result = apiInstance.getReposOwnerRepoPullsNumberLabels(owner, repo, number, page, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#getReposOwnerRepoPullsNumberLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
page | Integer | 当前的页码 | [optional] [default to 1] |
perPage | Integer | 每页的数量,最大为 100 | [optional] [default to 20] [enum: 1, 100] |
getReposOwnerRepoPullsNumberMerge(owner, repo, number)
判断Pull Request是否已经合并
判断Pull Request是否已经合并
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
try {
apiInstance.getReposOwnerRepoPullsNumberMerge(owner, repo, number);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#getReposOwnerRepoPullsNumberMerge");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 |
null (empty response body)
List<OperateLog> getReposOwnerRepoPullsNumberOperateLogs(owner, repo, number, sort)
获取某个Pull Request的操作日志
获取某个Pull Request的操作日志
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
String sort = "desc"; // String | 按递增(asc)或递减(desc)排序,默认:递减
try {
List<OperateLog> result = apiInstance.getReposOwnerRepoPullsNumberOperateLogs(owner, repo, number, sort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#getReposOwnerRepoPullsNumberOperateLogs");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
sort | String | 按递增(asc)或递减(desc)排序,默认:递减 | [optional] [default to desc] [enum: desc, asc] |
PullRequestComments patchReposOwnerRepoPullsCommentsId(owner, repo, id, body)
编辑评论
编辑评论
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer id = 56; // Integer | 评论的ID
CommentBody body = new CommentBody(); // CommentBody |
try {
PullRequestComments result = apiInstance.patchReposOwnerRepoPullsCommentsId(owner, repo, id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#patchReposOwnerRepoPullsCommentsId");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
id | Integer | 评论的ID | |
body | CommentBody | [optional] |
PullRequest patchReposOwnerRepoPullsNumber(owner, repo, number, body)
更新Pull Request信息
更新Pull Request信息
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
PullsNumberBody body = new PullsNumberBody(); // PullsNumberBody |
try {
PullRequest result = apiInstance.patchReposOwnerRepoPullsNumber(owner, repo, number, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#patchReposOwnerRepoPullsNumber");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
body | PullsNumberBody | [optional] |
PullRequest patchReposOwnerRepoPullsNumberAssignees(owner, repo, number, body)
重置 Pull Request 审查 的状态
重置 Pull Request 审查 的状态
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
NumberAssigneesBody1 body = new NumberAssigneesBody1(); // NumberAssigneesBody1 |
try {
PullRequest result = apiInstance.patchReposOwnerRepoPullsNumberAssignees(owner, repo, number, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#patchReposOwnerRepoPullsNumberAssignees");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
body | NumberAssigneesBody1 | [optional] |
PullRequest patchReposOwnerRepoPullsNumberTesters(owner, repo, number, body)
重置 Pull Request 测试 的状态
重置 Pull Request 测试 的状态
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
NumberTestersBody1 body = new NumberTestersBody1(); // NumberTestersBody1 |
try {
PullRequest result = apiInstance.patchReposOwnerRepoPullsNumberTesters(owner, repo, number, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#patchReposOwnerRepoPullsNumberTesters");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
body | NumberTestersBody1 | [optional] |
PullRequest postReposOwnerRepoPulls(owner, repo, body)
创建Pull Request
创建Pull Request
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
RepoPullsBody body = new RepoPullsBody(); // RepoPullsBody |
try {
PullRequest result = apiInstance.postReposOwnerRepoPulls(owner, repo, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#postReposOwnerRepoPulls");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
body | RepoPullsBody | [optional] |
PullRequest postReposOwnerRepoPullsNumberAssignees(owner, repo, number, body)
指派用户审查 Pull Request
指派用户审查 Pull Request
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
NumberAssigneesBody body = new NumberAssigneesBody(); // NumberAssigneesBody |
try {
PullRequest result = apiInstance.postReposOwnerRepoPullsNumberAssignees(owner, repo, number, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#postReposOwnerRepoPullsNumberAssignees");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
body | NumberAssigneesBody | [optional] |
PullRequestComments postReposOwnerRepoPullsNumberComments(owner, repo, number, body)
提交Pull Request评论
提交Pull Request评论
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
NumberCommentsBody1 body = new NumberCommentsBody1(); // NumberCommentsBody1 |
try {
PullRequestComments result = apiInstance.postReposOwnerRepoPullsNumberComments(owner, repo, number, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#postReposOwnerRepoPullsNumberComments");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
body | NumberCommentsBody1 | [optional] |
List<Label> postReposOwnerRepoPullsNumberLabels(owner, repo, number, body)
创建 Pull Request 标签
创建 Pull Request 标签 需要在请求的 body 里填上数组,元素为标签的名字。如: ["performance", "bug"]
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
List<String> body = Arrays.asList("body_example"); // List<String> | 标签名数组,如: ["feat", "bug"]
try {
List<Label> result = apiInstance.postReposOwnerRepoPullsNumberLabels(owner, repo, number, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#postReposOwnerRepoPullsNumberLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
body | List<String> | 标签名数组,如: ["feat", "bug"] | [optional] |
postReposOwnerRepoPullsNumberReview(owner, repo, number, body)
处理 Pull Request 审查
处理 Pull Request 审查
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
NumberReviewBody body = new NumberReviewBody(); // NumberReviewBody |
try {
apiInstance.postReposOwnerRepoPullsNumberReview(owner, repo, number, body);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#postReposOwnerRepoPullsNumberReview");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
body | NumberReviewBody | [optional] |
null (empty response body)
postReposOwnerRepoPullsNumberTest(owner, repo, number, body)
处理 Pull Request 测试
处理 Pull Request 测试
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
NumberTestBody body = new NumberTestBody(); // NumberTestBody |
try {
apiInstance.postReposOwnerRepoPullsNumberTest(owner, repo, number, body);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#postReposOwnerRepoPullsNumberTest");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
body | NumberTestBody | [optional] |
null (empty response body)
PullRequest postReposOwnerRepoPullsNumberTesters(owner, repo, number, body)
指派用户测试 Pull Request
指派用户测试 Pull Request
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
NumberTestersBody body = new NumberTestersBody(); // NumberTestersBody |
try {
PullRequest result = apiInstance.postReposOwnerRepoPullsNumberTesters(owner, repo, number, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#postReposOwnerRepoPullsNumberTesters");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
body | NumberTestersBody | [optional] |
List<Label> putReposOwnerRepoPullsNumberLabels(owner, repo, number, body)
替换 Pull Request 所有标签
替换 Pull Request 所有标签 需要在请求的body里填上数组,元素为标签的名字。如: ["performance", "bug"]
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
List<String> body = Arrays.asList("body_example"); // List<String> | 标签名数组,如: ["feat", "bug"]
try {
List<Label> result = apiInstance.putReposOwnerRepoPullsNumberLabels(owner, repo, number, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#putReposOwnerRepoPullsNumberLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
body | List<String> | 标签名数组,如: ["feat", "bug"] | [optional] |
putReposOwnerRepoPullsNumberMerge(owner, repo, number, body)
合并Pull Request
合并Pull Request
// Import classes:
//import com.gitee.sdk.gitee5j.ApiClient;
//import com.gitee.sdk.gitee5j.ApiException;
//import com.gitee.sdk.gitee5j.Configuration;
//import com.gitee.sdk.gitee5j.auth.*;
//import com.gitee.sdk.gitee5j.api.PullRequestsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
PullRequestsApi apiInstance = new PullRequestsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
Integer number = 56; // Integer | 第几个PR,即本仓库PR的序数
NumberMergeBody body = new NumberMergeBody(); // NumberMergeBody |
try {
apiInstance.putReposOwnerRepoPullsNumberMerge(owner, repo, number, body);
} catch (ApiException e) {
System.err.println("Exception when calling PullRequestsApi#putReposOwnerRepoPullsNumberMerge");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | Integer | 第几个PR,即本仓库PR的序数 | |
body | NumberMergeBody | [optional] |
null (empty response body)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。