ListCheckRuns
Queries a list of check runs with pagination support.
Try it now
Test
RAM authorization
Request syntax
GET /api/v4/projects/check_runs/list_check_runs HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The organization ID. It is a string and can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId]. |
5ebbc0228123212b59xxxxx |
| accessToken |
string |
No |
The personal access token. This parameter is not required if you use an Alibaba Cloud AccessKey pair or Security Token Service (STS) temporary authorization. |
f0b1e61db5961df5975a93f9129d2513 |
| repositoryIdentity |
string |
Yes |
The ID or full path of the code repository. |
2835387 or codeup/codeup-demo |
| ref |
string |
Yes |
The branch name, tag name, or commit ID. |
40f4ccfe019cdd4a62d4acb0c57130106fc7e1be |
| page |
integer |
No |
The page number. Default value: 1. |
1 |
| pageSize |
integer |
No |
The number of entries per page. Default value: 20. Valid values: 1 to 100. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| success |
boolean |
Indicates whether the call was successful. |
true |
| errorCode |
string |
The error code. |
SYSTEM_UNKNOWN_ERROR |
| errorMessage |
string |
The error message. |
"" |
| result |
array<object> |
The list of returned results. |
|
|
array<object> |
The returned result. |
||
| id |
integer |
The unique identifier. |
1 |
| createdAt |
string |
The creation time in ISO 8601 format with a time zone offset. |
2022-01-14T21:08:26+08:00 |
| updatedAt |
string |
The update time in ISO 8601 format with a time zone offset. |
2022-01-14T21:08:26+08:00 |
| startedAt |
string |
The start time. |
2023-03-15T08:00:00Z |
| completedAt |
string |
The completion time. |
2023-03-15T08:00:00Z |
| externalId |
string |
The ID of the external system. |
42 |
| name |
string |
The name. |
my-check-ci |
| headSha |
string |
The commit ID. |
40f4ccfe019cdd4a62d4acb0c57130106fc7e1be |
| status |
string |
The status. Valid values:
|
completed |
| conclusion |
string |
The conclusion. Valid values:
|
success |
| detailsUrl |
string |
The details URL of the third-party interactive system. The URL is determined by the user, and the platform only provides the redirection capability. |
https://example.com/checks/1001 |
| checkSuite |
object |
The check suite. |
|
| id |
integer |
The check suite ID. |
1 |
| writer |
object |
The brief information about the writer. |
|
| id |
string |
The Alibaba Cloud account ID of the user. |
123456789012**** |
| type |
string |
The type of the writer. Valid values:
|
User |
| name |
string |
The name of the writer. |
test-codeup |
| slug |
string |
The alias. |
test-codeup |
| logoUrl |
string |
The profile picture URL of the writer. |
https://example.com/images/avatar.png |
| output |
object |
The page display information. |
|
| title |
string |
The title of the UI module (not the name). |
Mighty Readme report |
| summary |
string |
The summary information of the check run. Note
Markdown format is supported. The maximum length is 64 KB, which is 65,535 characters. |
Summary content |
| text |
string |
The details. Note
Markdown format is supported. The maximum length is 64 KB, which is 65,535 characters. |
Details content |
| images |
array<object> |
The list of images. Note
Check runs support displaying images in the output display module. |
|
|
object |
The image. |
||
| alt |
string |
The alt text. |
test-image-alt |
| imageUrl |
string |
The image URL. Make sure that the URL is accessible. Otherwise, the image cannot be displayed on the page. |
https://example.com/images/check-result.png |
| caption |
string |
The brief description of the image. |
test |
| annotations |
array<object> |
The list of check annotations. |
|
|
object |
The check annotation. |
||
| id |
integer |
The check annotation ID. |
11806 |
| path |
string |
The file path. |
demo/test.txt |
| startLine |
integer |
The start line. Note
The value starts from 1. You must ensure the validity of the file line numbers. Otherwise, the annotation cannot be displayed. |
1 |
| endLine |
integer |
The end line. |
2 |
| startColumn |
integer |
The start column. Note
This field is valid only when startLine is equal to endLine. |
3 |
| endColumn |
integer |
The end column. Note
This field is valid only when startLine is equal to endLine. |
5 |
| annotationLevel |
string |
The level of the check annotation. Valid values:
|
warning |
| message |
string |
The brief description. |
Brief description of the check annotation |
| title |
string |
The title of the check annotation. |
Title of the check annotation |
| rawDetails |
string |
The details. The maximum size is 64 KB. |
Details |
Examples
Success response
JSON format
{
"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": "Summary information content",
"text": "Detailed information content",
"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": "Brief description of the write-back check annotation",
"title": "Title of the check annotation",
"rawDetails": "Detailed information"
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.