获取关联工作项信息-九游平台
功能介绍
获取关联工作项信息。
调试
您可以在中调试该接口,支持自动认证鉴权。api explorer可以自动生成sdk代码示例,并提供sdk代码示例调试功能。
uri
get /v2/repositories/{repository_uuid}/related-commits
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
repository_uuid |
是 |
string |
仓库长id |
type |
否 |
integer |
关联工作项类型 |
search |
否 |
string |
查询关键字 |
page |
否 |
integer |
页码 |
per_page |
否 |
integer |
每页数量 |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
x-auth-token |
是 |
string |
用户token。 通过调用iam服务获取用户token接口获取(响应消息头中x-subject-token的值)。 |
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
error |
object error |
响应错误 |
result |
object relatedcommitlistvo |
关联工作项列表 |
status |
string |
响应状态 |
参数 |
参数类型 |
描述 |
---|---|---|
code |
string |
错误码 |
message |
string |
错误信息 |
参数 |
参数类型 |
描述 |
---|---|---|
total |
integer |
返回结果条数 |
list |
array relatedcommitvo |
返回结果数组 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
string |
主键id |
iam_id |
string |
用户id |
user_name |
string |
用户名称 |
repository_id |
string |
仓库id |
type |
string |
类型 |
user_id |
string |
用户id |
branch_name |
string |
分支名称 |
commit_id |
string |
commit id |
commit_shortid |
string |
commit 短id |
commit_msg |
string |
提交信息 |
commit_url |
string |
提交url |
commit_type |
string |
提交类型 |
related_id |
string |
工作项id |
create_at |
string |
创建时间 |
update_at |
string |
更新时间 |
related_url |
string |
工作项url |
message |
string |
描述 |
请求示例
get https://{endpoint}/v2/repositories/{repository_uuid}/related-commits
响应示例
状态码: 200
{ "result": [{ "id": "1", "iamid": "66666", "username": "test", "repositoryid": "8", "type": "commit", "userid": "6776", "branchname": "master", "commitid": "1", "commitshortid": "1", "commitmsg": "1", "commiturl": "", "committype": "", "relatedid": "", "relatedurl": "", "message": "", "createdat": "", "updatedat": "" }], "status": "success" }
状态码
状态码 |
描述 |
---|---|
200 |
ok |
错误码
请参见错误码。
相关文档
意见反馈
文档内容是否对您有帮助?
如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨