All URIs are relative to https://gitee.com/api
Method | HTTP request | Description |
---|---|---|
DeleteV5ReposOwnerRepoIssuesNumberLabels | Delete /v5/repos/{owner}/{repo}/issues/{number}/labels | 删除Issue所有标签 |
DeleteV5ReposOwnerRepoIssuesNumberLabelsName | Delete /v5/repos/{owner}/{repo}/issues/{number}/labels/{name} | 删除Issue标签 |
DeleteV5ReposOwnerRepoLabelsName | Delete /v5/repos/{owner}/{repo}/labels/{name} | 删除一个仓库任务标签 |
GetV5EnterprisesEnterpriseLabels | Get /v5/enterprises/{enterprise}/labels | 获取企业所有标签 |
GetV5EnterprisesEnterpriseLabelsName | Get /v5/enterprises/{enterprise}/labels/{name} | 获取企业某个标签 |
GetV5ReposOwnerRepoIssuesNumberLabels | Get /v5/repos/{owner}/{repo}/issues/{number}/labels | 获取仓库任务的所有标签 |
GetV5ReposOwnerRepoLabels | Get /v5/repos/{owner}/{repo}/labels | 获取仓库所有任务标签 |
GetV5ReposOwnerRepoLabelsName | Get /v5/repos/{owner}/{repo}/labels/{name} | 根据标签名称获取单个标签 |
PatchV5ReposOwnerRepoLabelsOriginalName | Patch /v5/repos/{owner}/{repo}/labels/{original_name} | 更新一个仓库任务标签 |
PostV5ReposOwnerRepoIssuesNumberLabels | Post /v5/repos/{owner}/{repo}/issues/{number}/labels | 创建Issue标签 |
PostV5ReposOwnerRepoLabels | Post /v5/repos/{owner}/{repo}/labels | 创建仓库任务标签 |
PutV5ReposOwnerRepoIssuesNumberLabels | Put /v5/repos/{owner}/{repo}/issues/{number}/labels | 替换Issue所有标签 |
DeleteV5ReposOwnerRepoIssuesNumberLabels(ctx, owner, repo, number, optional) 删除Issue所有标签
删除Issue所有标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | string | Issue 编号(区分大小写,无需添加 # 号) | |
optional | *DeleteV5ReposOwnerRepoIssuesNumberLabelsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoIssuesNumberLabelsOpts 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]
DeleteV5ReposOwnerRepoIssuesNumberLabelsName(ctx, owner, repo, number, name, optional) 删除Issue标签
删除Issue标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | string | Issue 编号(区分大小写,无需添加 # 号) | |
name | string | 标签名称 | |
optional | *DeleteV5ReposOwnerRepoIssuesNumberLabelsNameOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoIssuesNumberLabelsNameOpts 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]
DeleteV5ReposOwnerRepoLabelsName(ctx, owner, repo, name, optional) 删除一个仓库任务标签
删除一个仓库任务标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
name | string | 标签名称 | |
optional | *DeleteV5ReposOwnerRepoLabelsNameOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoLabelsNameOpts 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]
[]Label GetV5EnterprisesEnterpriseLabels(ctx, enterprise, optional) 获取企业所有标签
获取企业所有标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
enterprise | string | 企业的路径(path/login) | |
optional | *GetV5EnterprisesEnterpriseLabelsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5EnterprisesEnterpriseLabelsOpts 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 GetV5EnterprisesEnterpriseLabelsName(ctx, enterprise, name, optional) 获取企业某个标签
获取企业某个标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
enterprise | string | 企业的路径(path/login) | |
name | string | 标签名称 | |
optional | *GetV5EnterprisesEnterpriseLabelsNameOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5EnterprisesEnterpriseLabelsNameOpts 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 GetV5ReposOwnerRepoIssuesNumberLabels(ctx, owner, repo, number, optional) 获取仓库任务的所有标签
获取仓库任务的所有标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
number | string | Issue 编号(区分大小写,无需添加 # 号) | |
optional | *GetV5ReposOwnerRepoIssuesNumberLabelsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoIssuesNumberLabelsOpts 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 GetV5ReposOwnerRepoLabels(ctx, owner, repo, optional) 获取仓库所有任务标签
获取仓库所有任务标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
optional | *GetV5ReposOwnerRepoLabelsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoLabelsOpts 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 GetV5ReposOwnerRepoLabelsName(ctx, owner, repo, name, optional) 根据标签名称获取单个标签
根据标签名称获取单个标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
name | string | 标签名称 | |
optional | *GetV5ReposOwnerRepoLabelsNameOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoLabelsNameOpts 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 PatchV5ReposOwnerRepoLabelsOriginalName(ctx, owner, repo, originalName, optional) 更新一个仓库任务标签
更新一个仓库任务标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
originalName | string | 标签原有名称 | |
optional | *PatchV5ReposOwnerRepoLabelsOriginalNameOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a PatchV5ReposOwnerRepoLabelsOriginalNameOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 | name | optional.String| 标签新名称 | color | 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 PostV5ReposOwnerRepoIssuesNumberLabels(ctx, owner, repo, number, body) 创建Issue标签
创建Issue标签 需要在请求的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 | string | Issue 编号(区分大小写,无需添加 # 号) | |
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]
Label PostV5ReposOwnerRepoLabels(ctx, owner, repo, body) 创建仓库任务标签
创建仓库任务标签
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | 仓库所属空间地址(企业、组织或个人的地址path) | |
repo | string | 仓库路径(path) | |
body | LabelPostParam | 必选,标签的内容 |
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 PutV5ReposOwnerRepoIssuesNumberLabels(ctx, owner, repo, number, body) 替换Issue所有标签
替换Issue所有标签 需要在请求的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 | string | Issue 编号(区分大小写,无需添加 # 号) | |
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]