获取代码提交记录

请求方法/请求路径

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

资源描述

获取代码提交记录

输入参数说明

Path参数

参数名称参数类型必须参数说明默认值

projectId

string

项目ID

pipelineId

string

流水线ID

buildId

string

buildID

响应

HTTP代码说明参数类型

200

successful operation

请求样例

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

参数名称参数类型必须参数说明

data

数据

message

string

错误信息

status

integer

状态码

CommitResponse

参数名称参数类型必须参数说明

elementId

string

elementId

records

records

name

string

name

CommitData

参数名称参数类型必须参数说明

elementId

string

elementId

repoId

string

repoId

committer

string

committer

commitTime

integer

commitTime

repoName

string

repoName

commit

string

commit

buildId

string

buildId

comment

string

comment

type

integer

type

url

string

url

pipelineId

string

pipelineId

最后更新于