查询check run列表,支持分页功能。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
GET /api/v4/projects/check_runs/list_check_runs
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
|---|---|---|---|---|
| organizationId | string | 是 | 企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】 | 5ebbc0228123212b59xxxxx | 
| accessToken | string | 否 | 个人访问令牌。 使用阿里云 AK+SK 或使用 STS 临时授权方式不需要传该字段 | f0b1e61db5961df5975a93f9129d2513 | 
| repositoryIdentity | string | 是 | 代码库 ID 或者全路径 | 2835387 或 codeup/codeup-demo | 
| ref | string | 是 | 分支名称、标签名称或者提交 ID | 40f4ccfe019cdd4a62d4acb0c57130106fc7e1be | 
| page | long | 否 | 页码,默认值为 1,从第 1 页开始 | 1 | 
| pageSize | long | 否 | 每页大小,默认值为 20,取值范围【1,100】 | 20 | 
返回参数
示例
正常返回示例
JSON格式
{
  "requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
  "success": true,
  "errorCode": "SYSTEM_UNKNOWN_ERROR",
  "errorMessage": "\"\"",
  "result": [
    {
      "id": 1,
      "createdAt": "2022-01-14T21:08:26+08:00\n",
      "updatedAt": "2022-01-14T21:08:26+08:00\n",
      "startedAt": "2023-03-15T08:00:00Z\n",
      "completedAt": "2023-03-15T08:00:00Z\n",
      "externalId": "42",
      "name": "my-check-ci\n",
      "headSha": "40f4ccfe019cdd4a62d4acb0c57130106fc7e1be",
      "status": "completed",
      "conclusion": "success",
      "detailsUrl": "xxx",
      "checkSuite": {
        "id": 1
      },
      "writer": {
        "id": "xxx",
        "type": "User",
        "name": "test-codeup\n",
        "slug": "test-codeup\n",
        "logoUrl": "xxx"
      },
      "output": {
        "title": "Mighty Readme report\n",
        "summary": "摘要信息内容",
        "text": "详情信息内容",
        "images": [
          {
            "alt": "test-image-alt\n",
            "imageUrl": "xxx",
            "caption": "test"
          }
        ]
      },
      "annotations": [
        {
          "id": 11806,
          "path": "demo/test.txt\n",
          "startLine": 1,
          "endLine": 2,
          "startColumn": 3,
          "endColumn": 5,
          "annotationLevel": "warning",
          "message": "回写检查注释的简要描述信息\n",
          "title": "检查注释的标题",
          "rawDetails": "详情信息\n"
        }
      ]
    }
  ]
}错误码
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 | 
|---|
暂无变更历史
