代码托管 CodeArts Repo-获取仓库合并请求详情:响应示例

时间:2023-11-01 16:20:20

响应示例

状态码: 200

OK

{  "result" : {    "iid" : 1,    "approval_merge_request_approvers" : [ {      "nick_name" : "emily",      "name" : "emily",      "id" : 7513,      "state" : "optional",      "username" : "0c1de3e61c80d56b1f7dc01164788784"    }, {      "nick_name" : "lmptest02",      "name" : "lmptest02",      "id" : 7745,      "state" : "optional",      "username" : "2ef8c2c835424e988ff33a8339ee1cb4"    } ],    "description" : "merge \"branch123\" into \"master\"\n新建文件 dsadsad11",    "created_at" : "2021-12-08T16:34:49.000+08:00",    "title" : "tesafrds.",    "source_branch" : "branch123",    "updated_at" : "2021-12-09T11:21:02.000+08:00",    "id" : 6670,    "state" : "opened",    "closed_at" : "2021-12-08T16:34:50.000+08:00",    "author" : {      "name" : "repo",      "id" : 6879,      "state" : "active",      "username" : "e0c068bf68c44bfab87b763ff85da277"    },    "is_source_branch_exist" : true,    "target_branch" : "master",    "merge_status" : "unchecked",    "merge_request_diff" : {      "merge_request_id" : 6670,      "head_commit_sha" : "715fc146292edc31a588fbc74349a2b8d18dbc27",      "updated_at" : "2021-12-09T11:20:58.000+08:00",      "start_commit_sha" : "02f0482056d3b949699eb69683914466c84529af",      "created_at" : "2021-12-09T11:20:58.000+08:00",      "base_commit_sha" : "6e90282f6334433a9fe3be809a7c1eed1afbf10b",      "commits_count" : 2    },    "devcloud_source_branch" : "branch123",    "merge_request_assignee_list" : [ {      "name" : "六月飞雪",      "id" : 6743,      "state" : "active",      "username" : "a618e34bd5704be3ae3395dfede06041"    }, {      "name" : "管理员总账户",      "id" : 6747,      "state" : "active",      "username" : "42dd0277cfb048dea856e4ee352e937d"    } ]  },  "status" : "success"}
support.huaweicloud.com/api-codehub/ShowMergeRequest.html