设置issue负责人
设置issue负责人
Path Parameters
- owner required
代码仓库的所有者,一般称之为"用户名(username)"。该名称不区分大小写。
- repo required
代码仓库名称。该名称不区分大小写。
- issue_number required
issue序号
Header Parameters
- Authorization required
私人token | app token(ats)(需以Bearer加空格开头)
- application/json
Request Body
- assignee string
负责人用户名(username)
Responses
- 200
- 401
- 403
操作成功
- application/json
- Schema
- Example (from schema)
Schema
- id string
id
- url string
url
- number int
序号
- state string
状态
- title string
标题
- body string
issue 正文(使用MD格式编写内容)
user object
id stringid
login stringusername
url string用户地址
avatar_url string头像地址
html_url string用户web地址
type string用户类型 User | Bot
assignee object
id stringid
login stringusername
url string用户地址
avatar_url string头像地址
html_url string用户web地址
type string用户类型 User | Bot
- locked boolean
锁定状态
- repository_url string
仓库地址
- html_url string
issue web 地址
- closed_at string
关闭时间
- created_at string
创建时间
- updated_at string
更新时间
{
"id": "64a2791c36ca86246aed3612",
"url": "https://api.atomgit.com/repos/test/public01/issues/6",
"number": 1,
"state": "closed",
"title": "test title",
"body": "issue content",
"user": {
"id": "62c791bede9059102516aa8f",
"login": "lik0914",
"url": "https://api.atomgit.com/users/lik0914",
"avatar_url": "https://xxx.com/uploads/user/1657265547983_3769.png",
"html_url": "https://atomgit.com/lik0914",
"type": "User"
},
"assignee": {
"id": "62c791bede9059102516aa8f",
"login": "lik0914",
"url": "https://api.atomgit.com/users/lik0914",
"avatar_url": "https://xxx.com/uploads/user/1657265547983_3769.png",
"html_url": "https://atomgit.com/lik0914",
"type": "User"
},
"locked": false,
"repository_url": "https://api.atomgit.com/repos/test/public01",
"html_url": "https://atomgit.com/test/public01/issues/1",
"closed_at": "2023-07-04T17:03:05+08:00",
"created_at": "2023-07-04T17:03:05+08:00",
"updated_at": "2023-07-04T17:03:05+08:00"
}
token不合法、请检查token是否正确
- application/json
- Schema
- Example (from schema)
Schema
- error string
错误名称
- error_description string
错误描述
{
"error": "invalid_token",
"error_description": "Invalid token, please provide correct token"
}
权限异常
- application/json
- Schema
- Example (from schema)
Schema
- error_code string
错误名称
- error_message string
错误描述
{
"error_code": "string",
"error_message": "string"
}
Loading...