创建Issue标签
POST/api/v5/repos/:owner/:repo/issues/:number/labels
Request
Path Parameters
owner stringrequired
仓库所属空间地址(组织或个人的地址path)
repo stringrequired
仓库路径(path)
number stringrequired
issue编号
Query Parameters
access_token stringrequired
用户授权码
- application/json
Body array
- Array [
- ]
string
标签名称
Responses
- 200
成功响应
Response Headers
- application/json
- Schema
- Example (auto)
- Example
Schema
- Array [
- ]
colorstring
namestring
idinteger
titlestring
typenull
textColorstring
[
{
"color": "string",
"name": "string",
"id": 0,
"title": "string",
"textColor": "string"
}
]
{
"color": "#008672",
"name": "help wanted",
"id": 381445,
"title": "help wanted",
"type": null,
"textColor": "#FFFFFF"
}