All URIs are relative to https://gitee.com/api/v5
Method | HTTP request | Description |
---|---|---|
deleteReposOwnerRepoIssuesNumberLabels | DELETE /repos/{owner}/{repo}/issues/{number}/labels | 删除Issue所有标签 |
deleteReposOwnerRepoIssuesNumberLabelsName | DELETE /repos/{owner}/{repo}/issues/{number}/labels/{name} | 删除Issue标签 |
deleteReposOwnerRepoLabelsName | DELETE /repos/{owner}/{repo}/labels/{name} | 删除一个仓库任务标签 |
deleteReposOwnerRepoProjectLabels | DELETE /repos/{owner}/{repo}/project_labels | 删除仓库标签 |
getEnterprisesEnterpriseLabels | GET /enterprises/{enterprise}/labels | 获取企业所有标签 |
getEnterprisesEnterpriseLabelsName | GET /enterprises/{enterprise}/labels/{name} | 获取企业某个标签 |
getReposOwnerRepoIssuesNumberLabels | GET /repos/{owner}/{repo}/issues/{number}/labels | 获取仓库任务的所有标签 |
getReposOwnerRepoLabels | GET /repos/{owner}/{repo}/labels | 获取仓库所有任务标签 |
getReposOwnerRepoLabelsName | GET /repos/{owner}/{repo}/labels/{name} | 根据标签名称获取单个标签 |
getReposOwnerRepoProjectLabels | GET /repos/{owner}/{repo}/project_labels | 获取仓库所有标签 |
patchReposOwnerRepoLabelsOriginalName | PATCH /repos/{owner}/{repo}/labels/{original_name} | 更新一个仓库任务标签 |
postReposOwnerRepoIssuesNumberLabels | POST /repos/{owner}/{repo}/issues/{number}/labels | 创建Issue标签 |
postReposOwnerRepoLabels | POST /repos/{owner}/{repo}/labels | 创建仓库任务标签 |
postReposOwnerRepoProjectLabels | POST /repos/{owner}/{repo}/project_labels | 添加仓库标签 |
putReposOwnerRepoIssuesNumberLabels | PUT /repos/{owner}/{repo}/issues/{number}/labels | 替换Issue所有标签 |
putReposOwnerRepoProjectLabels | PUT /repos/{owner}/{repo}/project_labels | 替换所有仓库标签 |
deleteReposOwnerRepoIssuesNumberLabels(owner, repo, number)
删除Issue所有标签
删除Issue所有标签
// 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
String number = "number_example"; // String | Issue 编号(区分大小写,无需添加 # 号)
try {
apiInstance.deleteReposOwnerRepoIssuesNumberLabels(owner, repo, number);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#deleteReposOwnerRepoIssuesNumberLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | String | Issue 编号(区分大小写,无需添加 # 号) |
null (empty response body)
deleteReposOwnerRepoIssuesNumberLabelsName(owner, repo, number, name)
删除Issue标签
删除Issue标签
// 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
String number = "number_example"; // String | Issue 编号(区分大小写,无需添加 # 号)
String name = "name_example"; // String | 标签名称(批量删除用英文逗号分隔,如: bug,feature)
try {
apiInstance.deleteReposOwnerRepoIssuesNumberLabelsName(owner, repo, number, name);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#deleteReposOwnerRepoIssuesNumberLabelsName");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | String | Issue 编号(区分大小写,无需添加 # 号) | |
name | String | 标签名称(批量删除用英文逗号分隔,如: bug,feature) |
null (empty response body)
deleteReposOwnerRepoLabelsName(owner, repo, name)
删除一个仓库任务标签
删除一个仓库任务标签
// 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
String name = "name_example"; // String | 标签名称
try {
apiInstance.deleteReposOwnerRepoLabelsName(owner, repo, name);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#deleteReposOwnerRepoLabelsName");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
name | String | 标签名称 |
null (empty response body)
deleteReposOwnerRepoProjectLabels(owner, repo, 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
List<String> body = Arrays.asList("body_example"); // List<String> | 标签名数组,如: ["feat", "bug"]
try {
apiInstance.deleteReposOwnerRepoProjectLabels(owner, repo, body);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#deleteReposOwnerRepoProjectLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
body | List<String> | 标签名数组,如: ["feat", "bug"] | [optional] |
null (empty response body)
List<Label> getEnterprisesEnterpriseLabels(enterprise)
获取企业所有标签
获取企业所有标签
// 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String enterprise = "enterprise_example"; // String | 企业的路径(path/login)
try {
List<Label> result = apiInstance.getEnterprisesEnterpriseLabels(enterprise);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#getEnterprisesEnterpriseLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
enterprise | String | 企业的路径(path/login) |
Label getEnterprisesEnterpriseLabelsName(enterprise, name)
获取企业某个标签
获取企业某个标签
// 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String enterprise = "enterprise_example"; // String | 企业的路径(path/login)
String name = "name_example"; // String | 标签名称
try {
Label result = apiInstance.getEnterprisesEnterpriseLabelsName(enterprise, name);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#getEnterprisesEnterpriseLabelsName");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
enterprise | String | 企业的路径(path/login) | |
name | String | 标签名称 |
List<Label> getReposOwnerRepoIssuesNumberLabels(owner, repo, number)
获取仓库任务的所有标签
获取仓库任务的所有标签
// 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
String number = "number_example"; // String | Issue 编号(区分大小写,无需添加 # 号)
try {
List<Label> result = apiInstance.getReposOwnerRepoIssuesNumberLabels(owner, repo, number);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#getReposOwnerRepoIssuesNumberLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | String | Issue 编号(区分大小写,无需添加 # 号) |
List<Label> getReposOwnerRepoLabels(owner, repo)
获取仓库所有任务标签
获取仓库所有任务标签
// 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
try {
List<Label> result = apiInstance.getReposOwnerRepoLabels(owner, repo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#getReposOwnerRepoLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) |
Label getReposOwnerRepoLabelsName(owner, repo, name)
根据标签名称获取单个标签
根据标签名称获取单个标签
// 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
String name = "name_example"; // String | 标签名称
try {
Label result = apiInstance.getReposOwnerRepoLabelsName(owner, repo, name);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#getReposOwnerRepoLabelsName");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
name | String | 标签名称 |
List<ProjectLabel> getReposOwnerRepoProjectLabels(owner, repo)
获取仓库所有标签
获取仓库所有标签
// 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
try {
List<ProjectLabel> result = apiInstance.getReposOwnerRepoProjectLabels(owner, repo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#getReposOwnerRepoProjectLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) |
Label patchReposOwnerRepoLabelsOriginalName(owner, repo, originalName, 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
String originalName = "originalName_example"; // String | 标签原有名称
LabelsOriginalNameBody body = new LabelsOriginalNameBody(); // LabelsOriginalNameBody |
try {
Label result = apiInstance.patchReposOwnerRepoLabelsOriginalName(owner, repo, originalName, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#patchReposOwnerRepoLabelsOriginalName");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
originalName | String | 标签原有名称 | |
body | LabelsOriginalNameBody | [optional] |
List<Label> postReposOwnerRepoIssuesNumberLabels(owner, repo, number, body)
创建Issue标签
创建Issue标签 需要在请求的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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
String number = "number_example"; // String | Issue 编号(区分大小写,无需添加 # 号)
List<String> body = Arrays.asList("body_example"); // List<String> | 标签名数组,如: ["feat", "bug"]
try {
List<Label> result = apiInstance.postReposOwnerRepoIssuesNumberLabels(owner, repo, number, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#postReposOwnerRepoIssuesNumberLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | String | Issue 编号(区分大小写,无需添加 # 号) | |
body | List<String> | 标签名数组,如: ["feat", "bug"] | [optional] |
Label postReposOwnerRepoLabels(owner, repo, 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
RepoLabelsBody body = new RepoLabelsBody(); // RepoLabelsBody |
try {
Label result = apiInstance.postReposOwnerRepoLabels(owner, repo, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#postReposOwnerRepoLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
body | RepoLabelsBody | [optional] |
List<ProjectLabel> postReposOwnerRepoProjectLabels(owner, repo, 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
List<String> body = Arrays.asList("body_example"); // List<String> | 标签名数组,如: ["feat", "bug"]
try {
List<ProjectLabel> result = apiInstance.postReposOwnerRepoProjectLabels(owner, repo, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#postReposOwnerRepoProjectLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
body | List<String> | 标签名数组,如: ["feat", "bug"] | [optional] |
List<Label> putReposOwnerRepoIssuesNumberLabels(owner, repo, number, body)
替换Issue所有标签
替换Issue所有标签 需要在请求的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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
String number = "number_example"; // String | Issue 编号(区分大小写,无需添加 # 号)
List<String> body = Arrays.asList("body_example"); // List<String> | 标签名数组,如: ["feat", "bug"]
try {
List<Label> result = apiInstance.putReposOwnerRepoIssuesNumberLabels(owner, repo, number, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#putReposOwnerRepoIssuesNumberLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
number | String | Issue 编号(区分大小写,无需添加 # 号) | |
body | List<String> | 标签名数组,如: ["feat", "bug"] | [optional] |
List<ProjectLabel> putReposOwnerRepoProjectLabels(owner, repo, 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.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
LabelsApi apiInstance = new LabelsApi();
String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
String repo = "repo_example"; // String | 仓库路径(path)
List<String> body = Arrays.asList("body_example"); // List<String> | 标签名数组,如: ["feat", "bug"]
try {
List<ProjectLabel> result = apiInstance.putReposOwnerRepoProjectLabels(owner, repo, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#putReposOwnerRepoProjectLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
owner | String | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | String | 仓库路径(path) | |
body | List<String> | 标签名数组,如: ["feat", "bug"] | [optional] |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。