获取代码提交记录

请求方法/请求路径

GET /ms/openapi/api/apigw/v3/projects/{projectId}/pipelines/{pipelineId}/builds/{buildId}/repositoryCommit

资源描述

获取代码提交记录

输入参数说明

Path参数

响应

请求样例

curl -X GET '[请替换为API地址栏请求地址]' \
-H 'X-DEVOPS-UID:xxx'

HEADER样例

accept: application/json
Content-Type: application/json
X-DEVOPS-UID:xxx

返回样例-200

{
  "data" : [ {
    "elementId" : "String",
    "records" : [ {
      "elementId" : "String",
      "repoId" : "String",
      "committer" : "String",
      "commitTime" : 0,
      "repoName" : "String",
      "commit" : "String",
      "buildId" : "String",
      "comment" : "String",
      "type" : 0,
      "url" : "String",
      "pipelineId" : "String"
    } ],
    "name" : "String"
  } ],
  "message" : "String",
  "status" : 0
}

数据返回包装模型ListCommitResponse

CommitResponse

CommitData

最后更新于